Save a bookmark or clip as a Note
const url = 'https://example.com/api/v1/notes/bookmarks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","favicon":"example","highlights":["example"],"kind":"bookmark","selected_text":"example","tags":["example"],"title":"example","url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/notes/bookmarks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "favicon": "example", "highlights": [ "example" ], "kind": "bookmark", "selected_text": "example", "tags": [ "example" ], "title": "example", "url": "example" }'Requires a signed-in User with the data scope. It saves the URL as a Bookmark Note or fetches a page clip. It returns 400 for invalid input, 413 when the page is too large, or 429 when capture is busy. Route: /api/v1/notes/bookmarks. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Page description supplied by the capturing client.
Favicon address supplied by the capturing client.
Selected passages to add as blockquotes.
Capture a link as a bookmark or fetch and extract it as a clip.
The selected text at capture time.
Tags to add to the Note frontmatter.
Page title. The server uses the extracted title or site when omitted.
Absolute HTTP or HTTPS address to save.
Responses
Section titled “Responses”Saved bookmark or clip Note
object
Validated render data for Canvas; an invalid imported file has no scene.
Examplegenerated
{ "body": "example", "canvas": "example", "etag": "example", "id": "example", "path": "example", "properties": "example", "title": "example"}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}