Skip to content
Skip to Content
Full reference

Imports

List recent imports

GET
/v1/imports

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

Imports, newest first

application/json
  1. response
imports*array<>
Example Request
curl -X GET 'https://example.com/v1/imports'
Example Response
{  "imports": [    {      "id": "string",      "format": "netscape",      "status": "pending",      "total": 0,      "imported": 0,      "skipped": 0,      "error": "string",      "error_code": "string",      "error_params": {        "property1": "string",        "property2": "string"      },      "finished_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}
POST
/v1/imports

Send the file as the request body, or as a multipart form field named file (max 25 MB). The import runs in the background; poll GET /v1/imports/{id}. Entries keep their original dates, URLs already saved are skipped, and archived and favourite state are kept where the export has them. Folders (browser bookmarks, Instapaper) and collections (Linkwarden) become lists; if the plan's list limit is reached the name is saved as a tag instead.

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.

Query Parameters

format*string

The file's format: netscape (a browser bookmarks HTML export), pocket (Pocket's CSV), karakeep (Karakeep's JSON), omnivore (Omnivore's metadata JSON, one array), instapaper (CSV), readwise (Readwise Reader's CSV), linkwarden (JSON), mymind (CSV) or onetab (OneTab's exported text, one url | title per line)

Value in"netscape""pocket""karakeep""omnivore""instapaper""readwise""linkwarden""mymind""onetab"

Request Body

body*file
Formatbinary

Response Body

The import, queued to run in the background

application/json
  1. response
id*string
format*string
Value in"netscape""pocket""karakeep""omnivore""instapaper""readwise""linkwarden""mymind""onetab"
status*string
Value in"pending""running""done""failed"
total*integer

Entries found in the file

imported*integer
skipped*integer

Entries already saved before, or not usable (for example javascript: links)

error?|

Why the import failed, in words the user can read

error_code?|

error as a code: file_missing, unreadable (params format), unsupported_format (format), stopped, plan_limit (on a done import that stopped at the plan's item limit; params left, plan, limit, allowed, upgrade_to). Null when there is no error. Show error for a code you do not know.

error_params?|null
finished_at?|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/imports?format=netscape' \  -H 'Content-Type: application/json' \  -d 'string'
Example Response
{  "id": "string",  "format": "netscape",  "status": "pending",  "total": 0,  "imported": 0,  "skipped": 0,  "error": "string",  "error_code": "string",  "error_params": {    "property1": "string",    "property2": "string"  },  "finished_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}

Import progress

GET
/v1/imports/{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 import

application/json
  1. response
id*string
format*string
Value in"netscape""pocket""karakeep""omnivore""instapaper""readwise""linkwarden""mymind""onetab"
status*string
Value in"pending""running""done""failed"
total*integer

Entries found in the file

imported*integer
skipped*integer

Entries already saved before, or not usable (for example javascript: links)

error?|

Why the import failed, in words the user can read

error_code?|

error as a code: file_missing, unreadable (params format), unsupported_format (format), stopped, plan_limit (on a done import that stopped at the plan's item limit; params left, plan, limit, allowed, upgrade_to). Null when there is no error. Show error for a code you do not know.

error_params?|null
finished_at?|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/imports/string'
Example Response
{  "id": "string",  "format": "netscape",  "status": "pending",  "total": 0,  "imported": 0,  "skipped": 0,  "error": "string",  "error_code": "string",  "error_params": {    "property1": "string",    "property2": "string"  },  "finished_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}