mirror of
https://github.com/zadam/trilium.git
synced 2024-12-25 00:34:08 +08:00
Page:
ETAPI
Pages
Advanced showcases
Anonymized database
Apache proxy setup
Archived notes
Attachments
Attribute inheritance
Attributes
Backup
Book note
Bookmarks
Canvas note
Cloning notes
Code notes
Custom request handler
Custom widget
Data directory
Day notes
Default note title
Desktop installation
Docker server installation
Document
ETAPI
Error logs
Events
Evernote import
FAQ
Frontend Basics
Home
Images
Keyboard shortcuts
Kubernetes server installation
Link map
Links
Manual server installation
Markdown
Mobile frontend
Nginx proxy setup
NixOS server installation
Note hoisting
Note map
Note navigation
Note revisions
Note
Onenote
Packaged server installation
Patterns of personal knowledge base
Privacy policy
Promoted attributes
Protected notes
Read only note
Relation map
Release notes v0.48
Saved search
Screenshot tour
Script API
Scripts
Search
Server installation
Sharing
Sorting
Synchronization
TLS configuration
Task manager
Template
Text notes
Theme Gallery
Themes
Tree concepts
Tree manipulation
Troubleshooting
Upgrading Trilium
Web clipper
Weight tracker
Widget Basics
Workspace
No results
10
ETAPI
zadam edited this page 2022-10-09 21:34:41 +02:00
Table of Contents
ETAPI is Trilium's public/external REST API. It is available since Trilium v0.50.
The documentation is in OpenAPI format, available here.
trilium-py is a third-party Python implementation for ETAPI client, you can use Python to communicate with Trilium.
Authentication
All operations have to be authenticated using a token. You can get this token either from Options -> ETAPI or programmatically using the /auth/login
REST call (see the spec):
GET https://myserver.com/etapi/app-info
Authorization: ETAPITOKEN
Alternatively, since 0.56 you can also use basic auth format:
GET https://myserver.com/etapi/app-info
Authorization: Basic BATOKEN
- Where
BATOKEN = BASE64(username + ':' + password)
- this is a standard Basic Auth serialization - Where
username
is "etapi" - And
password
is the generated ETAPI token described above.
Basic Auth is meant to be used with tools which support only basic auth.
- Screenshot tour
- Basic concepts
- Installation & setup
- Advanced usage
- Developer guides
- FAQ
- Troubleshooting
Back to Overview