Skip to content
Skip to Content
Full reference

Exports

List recent exports

GET
/v1/exports

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Response Body

The 20 most recent exports, newest first. Ready ones carry a fresh download link.

application/json
  1. response
exports*array<>
Example Request
curl -X GET 'https://example.com/v1/exports'
Example Response
{  "exports": [    {      "id": "string",      "status": "pending",      "item_count": 0,      "file_count": 0,      "size_bytes": 0,      "error": "string",      "error_code": "string",      "error_params": {        "property1": "string",        "property2": "string"      },      "expires_at": "2019-08-24T14:15:22Z",      "finished_at": "2019-08-24T14:15:22Z",      "url": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}

Export the whole library

POST
/v1/exports

Queues a ZIP of everything the user saved: items.jsonl, a Markdown file per item, bookmarks.html, the items' stored files, and lists, spaces, rules and reminders (see docs/EXPORTS.md). It is built in the background; poll GET /v1/exports/{id} or wait for the export.ready push. Allowed while the library is read-only over its plan's limits. 409 when an export is already waiting or running; 429 after three exports in 24 hours.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Response Body

The export, queued to run in the background

application/json
  1. response
id*string
status*string
Value in"pending""running""done""failed"
item_count*integer
file_count*integer

Stored files copied into the archive

size_bytes*|

The ZIP's size, once done

error*|

Why the export failed, in words the user can read

error_code?|

error as a code: stopped. Null when there is no error. Show error for a code you do not know.

error_params?|null
expires_at*|

When the file is deleted (7 days after it finished)

Formatdate-time
finished_at*|
Formatdate-time
url?string

Signed download link, valid for one hour; present only while the export is done and not expired. Fetch the export again for a new one.

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/exports'
Example Response
{  "id": "string",  "status": "pending",  "item_count": 0,  "file_count": 0,  "size_bytes": 0,  "error": "string",  "error_code": "string",  "error_params": {    "property1": "string",    "property2": "string"  },  "expires_at": "2019-08-24T14:15:22Z",  "finished_at": "2019-08-24T14:15:22Z",  "url": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}
GET
/v1/exports/{id}

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

id*string

Response Body

The export

application/json
  1. response
id*string
status*string
Value in"pending""running""done""failed"
item_count*integer
file_count*integer

Stored files copied into the archive

size_bytes*|

The ZIP's size, once done

error*|

Why the export failed, in words the user can read

error_code?|

error as a code: stopped. Null when there is no error. Show error for a code you do not know.

error_params?|null
expires_at*|

When the file is deleted (7 days after it finished)

Formatdate-time
finished_at*|
Formatdate-time
url?string

Signed download link, valid for one hour; present only while the export is done and not expired. Fetch the export again for a new one.

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/exports/string'
Example Response
{  "id": "string",  "status": "pending",  "item_count": 0,  "file_count": 0,  "size_bytes": 0,  "error": "string",  "error_code": "string",  "error_params": {    "property1": "string",    "property2": "string"  },  "expires_at": "2019-08-24T14:15:22Z",  "finished_at": "2019-08-24T14:15:22Z",  "url": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}
DELETE
/v1/exports/{id}

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

id*string

Response Body

Deleted

Example Request
curl -X DELETE 'https://example.com/v1/exports/string'
Example Response
Empty