Download OpenAPI specification:
External Trilium API
Create a note and place it into the note tree
| parentNoteId required | string (EntityId) [a-zA-Z0-9_]{4,32} |
| title required | string |
| type required | string Enum: "text" "code" "file" "image" "search" "book" "relationMap" "render" |
| mime | string this needs to be specified only for note types 'code', 'file', 'image'. |
| content required | string |
| notePosition | integer Position of the note in the parent. Normal ordering is 10, 20, 30 ... So if you want to create a note on the first position, use e.g. 5, for second position 15, for last e.g. 1000000 |
| prefix | string Prefix is branch (placement) specific title prefix for the note. Let's say you have your note placed into two different places in the tree, but you want to change the title a bit in one of the placements. For this you can use prefix. |
| isExpanded | boolean true if this note (as a folder) should appear expanded |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| branchId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| dateCreated | string (LocalDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| utcDateCreated | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "parentNoteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "application/json",
- "content": "string",
- "notePosition": 0,
- "prefix": "string",
- "isExpanded": true,
- "noteId": "evnnmvHTCgIn",
- "branchId": "evnnmvHTCgIn",
- "dateCreated": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z"
}{- "note": {
- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}, - "branch": {
- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
}Search notes
| search required | string Examples:
search query string as described in https://triliumnext.github.io/Docs/Wiki/search.html |
| fastSearch | boolean Default: false enable fast search (fulltext doesn't look into content) |
| includeArchivedNotes | boolean Default: false search by default ignores archived notes. Set to 'true' to includes archived notes into search results. |
| ancestorNoteId | string (EntityId) [a-zA-Z0-9_]{4,32} Example: ancestorNoteId=evnnmvHTCgIn search only in a subtree identified by the subtree noteId. By default whole tree is searched. |
| ancestorDepth | string Examples:
define how deep in the tree should the notes be searched |
| orderBy | string Example: orderBy=title&orderBy=#publicationDate&orderBy=isProtected&orderBy=isArchived&orderBy=dateCreated&orderBy=dateModified&orderBy=utcDateCreated&orderBy=utcDateModified&orderBy=parentCount&orderBy=childrenCount&orderBy=attributeCount&orderBy=labelCount&orderBy=ownedLabelCount&orderBy=relationCount&orderBy=ownedRelationCount&orderBy=relationCountIncludingLinks&orderBy=ownedRelationCountIncludingLinks&orderBy=targetRelationCount&orderBy=targetRelationCountIncludingLinks&orderBy=contentSize&orderBy=contentAndAttachmentsSize&orderBy=contentAndAttachmentsAndRevisionsSize&orderBy=revisionCount name of the property/label to order search results by |
| orderDirection | string Default: "asc" Enum: "asc" "desc" order direction, ascending or descending |
| limit | integer Example: limit=10 limit the number of results you want to receive |
| debug | boolean Default: false set to true to get debug information in the response (search query parsing) |
{- "results": [
- {
- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "debugInfo": { }
}Returns a note identified by its ID
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}patch a note identified by the noteId with changes in the body
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| title | string |
| type | string Enum: "text" "code" "render" "file" "image" "search" "relationMap" "book" "noteMap" "mermaid" "webView" "shortcut" "doc" "contentWidget" "launcher" |
| mime | string |
| blobId | string ID of the blob object which effectively serves as a content hash |
Array of objects (AttributeList) | |
| parentNoteIds | Array of strings (EntityIdList) [ items[a-zA-Z0-9_]{4,32} ] |
| childNoteIds | Array of strings (EntityIdList) [ items[a-zA-Z0-9_]{4,32} ] |
| parentBranchIds | Array of strings (EntityIdList) [ items[a-zA-Z0-9_]{4,32} ] |
| childBranchIds | Array of strings (EntityIdList) [ items[a-zA-Z0-9_]{4,32} ] |
| dateCreated | string (LocalDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| dateModified | string (LocalDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| utcDateCreated | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}deletes a single note based on the noteId supplied
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}Exports ZIP file export of a given note subtree. To export whole document, use "root" for noteId
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| format | any Default: "html" Enum: "html" "markdown" |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}Imports ZIP file into a given note.
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "note": {
- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}, - "branch": {
- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
}Create a note revision for the given note
| noteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| format | any Default: "html" Enum: "html" "markdown" |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}Create a branch (clone a note to a different location in the tree). In case there is a branch between parent note and child note already, then this will update the existing branch with prefix, notePosition and isExpanded.
| branchId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| parentNoteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| prefix | string |
| notePosition | integer <int32> |
| isExpanded | boolean |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}{- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}Returns a branch identified by its ID
| branchId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}patch a branch identified by the branchId with changes in the body. Only prefix and notePosition can be updated. If you want to update other properties, you need to delete the old branch and create a new one.
| branchId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| branchId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| parentNoteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| prefix | string |
| notePosition | integer <int32> |
| isExpanded | boolean |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}{- "branchId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "parentNoteId": "evnnmvHTCgIn",
- "prefix": "string",
- "notePosition": 0,
- "isExpanded": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}deletes a branch based on the branchId supplied. If this is the last branch of the (child) note, then the note is deleted as well.
| branchId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}create an attachment
| ownerId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| role | string |
| mime | string |
| title | string |
| content | string |
| position | integer <int32> |
{- "ownerId": "evnnmvHTCgIn",
- "role": "string",
- "mime": "string",
- "title": "string",
- "content": "string",
- "position": 0
}{- "attachmentId": "evnnmvHTCgIn",
- "ownerId": "evnnmvHTCgIn",
- "role": "string",
- "mime": "string",
- "title": "string",
- "position": 0,
- "blobId": "string",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateModified": "2021-12-31 19:18:11.930Z",
- "utcDateScheduledForErasureSince": "2021-12-31 19:18:11.930Z",
- "contentLength": 0
}Returns an attachment identified by its ID
| attachmentId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "attachmentId": "evnnmvHTCgIn",
- "ownerId": "evnnmvHTCgIn",
- "role": "string",
- "mime": "string",
- "title": "string",
- "position": 0,
- "blobId": "string",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateModified": "2021-12-31 19:18:11.930Z",
- "utcDateScheduledForErasureSince": "2021-12-31 19:18:11.930Z",
- "contentLength": 0
}patch an attachment identified by the attachmentId with changes in the body. Only role, mime, title, and position are patchable.
| attachmentId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| attachmentId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| ownerId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| role | string |
| mime | string |
| title | string |
| position | integer <int32> |
| blobId | string ID of the blob object which effectively serves as a content hash |
| dateModified | string (LocalDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| utcDateScheduledForErasureSince | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
| contentLength | integer <int32> |
{- "attachmentId": "evnnmvHTCgIn",
- "ownerId": "evnnmvHTCgIn",
- "role": "string",
- "mime": "string",
- "title": "string",
- "position": 0,
- "blobId": "string",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateModified": "2021-12-31 19:18:11.930Z",
- "utcDateScheduledForErasureSince": "2021-12-31 19:18:11.930Z",
- "contentLength": 0
}{- "attachmentId": "evnnmvHTCgIn",
- "ownerId": "evnnmvHTCgIn",
- "role": "string",
- "mime": "string",
- "title": "string",
- "position": 0,
- "blobId": "string",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateModified": "2021-12-31 19:18:11.930Z",
- "utcDateScheduledForErasureSince": "2021-12-31 19:18:11.930Z",
- "contentLength": 0
}deletes an attachment based on the attachmentId supplied.
| attachmentId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}create an attribute for a given note
| attributeId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| type | string Enum: "label" "relation" |
| name | string^[^\s]+ |
| value | string |
| position | integer <int32> |
| isInheritable | boolean |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}{- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}Returns an attribute identified by its ID
| attributeId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}patch an attribute identified by the attributeId with changes in the body. For labels, only value and position can be updated. For relations, only position can be updated. If you want to modify other properties, you need to delete the old attribute and create a new one.
| attributeId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
| attributeId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| noteId | string (EntityId) [a-zA-Z0-9_]{4,32} |
| type | string Enum: "label" "relation" |
| name | string^[^\s]+ |
| value | string |
| position | integer <int32> |
| isInheritable | boolean |
| utcDateModified | string (UtcDateTime) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:... |
{- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}{- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}deletes an attribute based on the attributeId supplied.
| attributeId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}notePositions in branches are not automatically pushed to connected clients and need a specific instruction. If you want your changes to be in effect immediately, call this service after setting branches' notePosition. Note that you need to supply "parentNoteId" of branch(es) with changed positions.
| parentNoteId required | string (EntityId) [a-zA-Z0-9_]{4,32} Example: evnnmvHTCgIn |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}returns an "inbox" note, into which note can be created. Date will be used depending on whether the inbox is a fixed note (identified with #inbox label) or a day note in a journal.
| date required | string <date> Example: 2022-02-22 |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}returns a day note for a given date. Gets created if doesn't exist.
| date required | string <date> Example: 2022-02-22 |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}returns a week note for a given date. Gets created if doesn't exist.
| date required | string <date> Example: 2022-02-22 |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}returns a week note for a given date. Gets created if doesn't exist.
| month required | string[0-9]{4}-[0-9]{2} Example: 2022-02 |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}returns a week note for a given date. Gets created if doesn't exist.
| year required | string[0-9]{4}-[0-9]{2} Example: 2022-02 |
{- "noteId": "evnnmvHTCgIn",
- "title": "string",
- "type": "text",
- "mime": "string",
- "isProtected": true,
- "blobId": "string",
- "attributes": [
- {
- "attributeId": "evnnmvHTCgIn",
- "noteId": "evnnmvHTCgIn",
- "type": "label",
- "name": "shareCss",
- "value": "string",
- "position": 0,
- "isInheritable": true,
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}
], - "parentNoteIds": [
- "evnnmvHTCgIn"
], - "childNoteIds": [
- "evnnmvHTCgIn"
], - "parentBranchIds": [
- "evnnmvHTCgIn"
], - "childBranchIds": [
- "evnnmvHTCgIn"
], - "dateCreated": "2021-12-31 20:18:11.930+0100",
- "dateModified": "2021-12-31 20:18:11.930+0100",
- "utcDateCreated": "2021-12-31 19:18:11.930Z",
- "utcDateModified": "2021-12-31 19:18:11.930Z"
}get an ETAPI token based on password for further use with ETAPI
| password | string user's password used to e.g. login to Trilium server and/or protect notes |
{- "password": "string"
}{- "authToken": "Bc4bFn0Ffiok_4NpbVCDnFz7B2WU+pdhW8B5Ne3DiR5wXrEyqdjgRIsk="
}returns information about the running Trilium instance
{- "appVersion": "0.50.2",
- "dbVersion": 194,
- "syncVersion": 25,
- "buildDate": "2022-02-09T22:52:36+01:00",
- "buildRevision": "23daaa2387a0655685377f0a541d154aeec2aae8",
- "dataDirectory": "/home/user/data",
- "clipperProtocolVersion": 1,
- "utcDateTime": "2022-03-07T21:54:25.277Z"
}Create a database backup under a given name
| backupName required | string (StringId) [a-zA-Z0-9_]{1,32} Example: my_ID If the backupName is e.g. "now", then the backup will be written to "backup-now.db" file |
{- "status": 400,
- "code": "NOTE_IS_PROTECTED",
- "message": "Note 'evnnmvHTCgIn' is protected and cannot be modified through ETAPI"
}