-
-
Notifications
You must be signed in to change notification settings - Fork 27
API documentation
- Index
GET - Signup
GET - Signup processor
POST - Login
GET - Login processor
POST - Logout
GET - Snapshots
GET - User
GET - Public bookmarks
GET - Snapshot
GET - Download snapshot
GET - Snapshot details
GET - Add bookmark
POST - Add resource
POST - Check bookmark
GET - Bookmark
GET - API
GET - Oauth
GET - Oauth verification
GET - Check token
POST - ActivityPub inbox
POST - ActivityPub outbox
GET - ActivityPub webfinger
GET - Profile
GET - Profile page
POST - Generate addon token
GET - Delete addon token
POST - Create bookmark form
GET - Create bookmark
POST - My bookmarks
GET - Edit bookmark
GET - Save bookmark
POST - Delete snapshot
POST - Delete bookmark
POST - Add tag
POST - Delete tag
POST
GET /
Landing page
GET /signup
Signup page
POST /signup
Signup form processor
| Name | Type | Required | Description |
|---|---|---|---|
| username | string |
true |
Username of the new account |
string |
true |
Email address of the new account |
GET /login
Login page
POST /login
Login form processor
| Name | Type | Required | Description |
|---|---|---|---|
| username | string |
true |
Username or email address of the new account |
GET /logout
Destroys user session
GET /snapshots
Search in snapshots by URL
| Name | Type | Required | Description |
|---|---|---|---|
| query | string |
false |
Search term to filter snapshots |
GET /users/:username
User profile page
GET /bookmarks
List public bookmarks with optional filters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string |
false |
Search term to filter bookmarks by title |
| owner | string |
false |
Search term to filter bookmarks by username |
| tag | string |
false |
Search term to filter bookmarks by tag |
| domain | string |
false |
Search term to filter bookmarks by domain |
| from | date |
false |
Display only newer bookmarks. (Format: YYYY.MM.DD) |
| to | date |
false |
Display only older bookmarks. (Format: YYYY.MM.DD) |
| search_in_snapshots | boolean |
false |
Query parameter also applied to snapshot content. (Values: 0, 1) |
| search_in_notes | boolean |
false |
Query parameter also applied to bookmark notes. (Values: 0, 1) |
GET /snapshot
Displays snapshots details with additional bookmark properties
| Name | Type | Required | Description |
|---|---|---|---|
| sid | string |
true |
Snapshot key |
| bid | int |
true |
Bookmark ID |
GET /download_snapshot
Download a self contained single file version of a snapshot
| Name | Type | Required | Description |
|---|---|---|---|
| sid | string |
true |
Snapshot key |
GET /snapshot_details
View snapshot details and resources
| Name | Type | Required | Description |
|---|---|---|---|
| sid | string |
true |
Snapshot key |
POST /add_bookmark
Add new bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| token | string |
true |
Extension token. It can be found on the profile page |
| url | URL |
true |
URL of the bookmark |
| title | string |
true |
Title of the bookmark |
| notes | string |
false |
Bookmark notes |
| favicon | string |
false |
Data URL encoded favicon (https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) |
| public | boolean |
false |
Marks bookmark as public |
| tags | string |
false |
Comma separated list of tags |
| snapshot_title | string |
false |
Title of the snapshot |
| snapshot_text | string |
false |
Text content of the snapshot |
| snapshot | multipart file |
false |
Snapshot file |
POST /add_resource
Add new resource to a snapshot
| Name | Type | Required | Description |
|---|---|---|---|
| token | string |
true |
Extension token. It can be found on the profile page |
| sid | string |
true |
Snapshot ID |
| meta | JSON string |
true |
List of resource metadata containing objects with mimetype, extension and filename information |
| resource[0-9]+ | multipart files |
true |
Resource files |
GET /check_bookmark
Checks if a bookmark is already exists
| Name | Type | Required | Description |
|---|---|---|---|
| token | string |
true |
Extension token. It can be found on the profile page |
| url | URL |
true |
URL of the bookmark |
GET /bookmark
Displays all details of a bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| id | int |
true |
Bookmark ID |
GET /api
Displays API documentation (this page)
GET /oauth
Creates OAuth requests
| Name | Type | Required | Description |
|---|---|---|---|
| provider | string |
true |
Oauth provider name |
GET /oauth_redirect_handler
Verifies OAuth requests
POST /check_token
Verifies addon tokens
| Name | Type | Required | Description |
|---|---|---|---|
| token | string |
true |
Addon token |
POST /inbox/:username
Inbox for ActivityPub messages
| Name | Type | Required | Description |
|---|---|---|---|
| message | JSON |
true |
ActivityPub message |
GET /outbox/:username
Outbox of ActivityPub messages
GET /.well-known/webfinger
Webfinger response for ActivityPub
| Name | Type | Required | Description |
|---|---|---|---|
| resource | string |
true |
ActivityPub resource |
GET /profile
Displays the user profile page
POST /profile
Displays the profile page with addon tokens
GET /generate_addon_token
Creates a new addon token
POST /delete_addon_token
Deletes an addon token
| Name | Type | Required | Description |
|---|---|---|---|
| id | int |
true |
Token ID |
GET /create_bookmark
Show create bookmark form
POST /create_bookmark
Create new bookmark from webapp
| Name | Type | Required | Description |
|---|---|---|---|
| url | string |
true |
URL of the bookmark |
| title | string |
true |
Title of the bookmark |
| notes | string |
false |
Bookmark notes |
| public | boolean |
false |
Bookmark is publicly accessible |
GET /my_bookmarks
Displays bookmarks belongs to the current user with optional filters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string |
false |
Search term to filter bookmarks by title |
| tag | string |
false |
Search term to filter bookmarks by tag |
| domain | string |
false |
Search term to filter bookmarks by domain |
| from | date |
false |
Display only newer bookmarks. (Format: YYYY.MM.DD) |
| to | date |
false |
Display only older bookmarks. (Format: YYYY.MM.DD) |
| is_public | boolean |
false |
Display only public bookmarks. (Values: 0, 1) |
| is_private | boolean |
false |
Display only private bookmarks. (Values: 0, 1) |
| search_in_snapshots | boolean |
false |
Query parameter also applied to snapshot content. (Values: 0, 1) |
| search_in_notes | boolean |
false |
Query parameter also applied to bookmark notes. (Values: 0, 1) |
GET /edit_bookmark
Displays a bookmark with all the editable properties
| Name | Type | Required | Description |
|---|---|---|---|
| id | int |
true |
Bookmark ID |
POST /save_bookmark
Saves an edited bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| id | int |
true |
Bookmark ID |
| title | string |
true |
Title of the bookmark |
| notes | string |
false |
Bookmark notes |
| public | boolean |
false |
Bookmark is publicly accessible. (Omit this argument in case of private bookmarks) |
POST /delete_snapshot
Deletes a snapshot
| Name | Type | Required | Description |
|---|---|---|---|
| bid | int |
true |
Bookmark ID |
| sid | int |
true |
Snapshot ID |
POST /delete_bookmark
Deletes a bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| id | int |
true |
Bookmark ID |
POST /add_tag
Add tag to a bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| bid | int |
true |
Bookmark ID |
| tag | string |
true |
Tag string |
POST /delete_tag
Delete tag's bookmark
| Name | Type | Required | Description |
|---|---|---|---|
| bid | int |
true |
Bookmark ID |
| tid | int |
true |
Tag ID |