API
The application provides a REST API that can be used by 3rd party applications to manage bookmarks.
Authentication
All requests against the API must be authorized using an authorization token. The application automatically generates an API token for each user, which can be accessed through the Settings page.
The token needs to be passed as Authorization
header in the HTTP request:
Resources
The following resources are available:
Bookmarks
List
List bookmarks.
Parameters:
q
- Filters results using a search phrase using the same logic as through the UIlimit
- Limits the max. number of results. Default is100
.offset
- Index from which to start returning results
Example response:
List Archived
List archived bookmarks.
Parameters and response are the same as for the regular list endpoint.
Retrieve
Retrieves a single bookmark by ID.
Check
Allows to check if a URL is already bookmarked. If the URL is already bookmarked, the bookmark
property in the response holds the bookmark data, otherwise it is null
.
Also returns a metadata
property that contains metadata scraped from the website. Finally, the auto_tags
property contains the tag names that would be automatically added when creating a bookmark for that URL.
Example response:
Create
Creates a new bookmark. Tags are simply assigned using their names. Including
is_archived: true
saves a bookmark directly to the archive.
If the provided URL is already bookmarked, this silently updates the existing bookmark instead of creating a new one. If you are implementing a user interface, consider notifying users about this behavior. You can use the /check
endpoint to check if a URL is already bookmarked and at the same time get the existing bookmark data. This behavior may change in the future to return an error instead.
If the title and description are not provided or empty, the application automatically tries to scrape them from the bookmarked website. This behavior can be disabled by adding the disable_scraping
query parameter to the API request.
Example payload:
Update
Updates a bookmark.
When using POST
, at least all required fields must be provided (currently only url
).
When using PATCH
, only the fields that should be updated need to be provided.
Regardless which method is used, any field that is not provided is not modified.
Tags are simply assigned using their names.
If the provided URL is already bookmarked this returns an error.
Example payload:
Archive
Archives a bookmark.
Unarchive
Unarchives a bookmark.
Delete
Deletes a bookmark by ID.
Tags
List
List tags.
Parameters:
limit
- Limits the max. number of results. Default is100
.offset
- Index from which to start returning results
Example response:
Retrieve
Retrieves a single tag by ID.
Create
Creates a new tag.
Example payload:
User
Profile
User preferences.
Example response: