Skip to Content
bookmark.land

Error Codes

Complete list of API error codes and their meanings

All errors follow a consistent format:

{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description"
  },
  "meta": { "requestId": "req_a1b2c3d4e5f6a1b2" }
}

Errors raised before your request is routed (IP rate limiting and blocking, malformed framing, oversized bodies) use the same envelope with a plain-string error message:

{
  "error": "Rate limit exceeded",
  "meta": { "requestId": "req_a1b2c3d4e5f6a1b2c3d4e5f6" }
}

meta.requestId (req_ followed by 24 hex characters) is present on every JSON error; quote it when contacting support. Three responses carry no JSON body: a 429 from our CDN's per-IP limit, a 403 to a CORS preflight from an origin that is not allowed, and the plain-text 404 for any path outside /v1/.

Authentication Errors (401)

CodeDescription
MISSING_TOKENNo Authorization header or missing Bearer prefix
INVALID_TOKENToken doesn't match any active token
TOKEN_REVOKEDToken has been explicitly revoked
TOKEN_EXPIREDToken has passed its expiration date

Authorization Errors (403)

CodeDescription
SCOPE_REQUIREDToken lacks the required scope for this endpoint
FORBIDDENOwnership check failed (trying to access another user's resource)
PRO_REQUIREDFeature requires a paid plan (Pro)
BUSINESS_REQUIREDFeature requires a Business plan
API_ACCESS_PRO_REQUIREDAPI access requires a paid plan (Pro)

Validation Errors (400)

CodeDescription
BAD_REQUESTMalformed request body or missing required fields
VALIDATION_ERRORInput validation failed (invalid URL, name too long, etc.)
INVALID_JSONRequest body is not valid JSON
INVALID_REQUESTRequest rejected: missing required fields or an invalid parameter value
PAGINATION_CURSOR_INVALIDCursor is malformed or came from a different listing (other filters or sort); restart without it
TAG_FILTER_CONFLICTGET /bookmarks got both tag and tagId
TAG_FILTER_SORT_UNSUPPORTEDGET /bookmarks with tag or tagId only sorts by newest or oldest
UPLOAD_NOT_CLAIMEDAn upload must be claimed before it can be saved or started

Resource Errors (404, 409, 422)

CodeStatusDescription
NOT_FOUND404Resource doesn't exist or invalid ID format
BOOKMARK_LIMIT_REACHED422Plan bookmark limit reached (50,000 on Pro)
COLLECTION_TOO_LARGE422Collection trash or restore would move more than 1,000 collections and bookmarks (trashed bookmarks included); nothing was changed. See collections for the fix
INVALID_FILE_TYPE422Uploaded file is not an accepted type (cover images: JPEG, PNG, GIF, WebP; imports: HTML)
FILE_TOO_LARGE422Uploaded file is too large (10 MB for cover images, 5 MB for imports)
STORAGE_LIMIT_REACHED422Total storage quota (500 MB) exceeded
RESERVATION_INVALID400Upload reservation is malformed, someone else's, or for a different bookmark or job
RESERVATION_EXPIRED410Upload reservation has expired; start over with a new upload URL
RESERVATION_ALREADY_CLAIMED409Upload reservation was already claimed
STORAGE_ID_ALREADY_CLAIMED409The uploaded file is already attached to something else
UPLOAD_NOT_FOUND404No uploaded file has that storageId

Rate Limiting (429)

CodeDescription
RATE_LIMITEDPer-plan or per-endpoint rate limit exceeded
TOO_MANY_PENDING_UPLOADSToo many outstanding upload reservations (max 5)

Both responses carry a Retry-After header: the seconds to wait before retrying. For TOO_MANY_PENDING_UPLOADS it's the time until your oldest upload reservation expires. See Rate Limits for details.

Job Errors

A failed import or export job reports its reason in GET /jobs/:id as error.code (JOB_CANCELED, JOB_TIMED_OUT or JOB_FAILED) and error.message. See Import & Export.

Server Errors (500)

CodeDescription
INTERNAL_ERRORUnexpected server error

If you consistently receive 500 errors, please contact support.

Planned Error Codes

The following error codes are planned for future releases and are not yet active:

CodeDescription
IP_BLOCKEDIP temporarily blocked due to repeated auth failures (edge worker)

On this page