Paper documentation
Personal API

Errors

The response codes and what to do with each.

Every error comes back as JSON, with a message you can show to the person. The message is in the language of the Accept-Language header (pt-BR, en or es; Portuguese when absent):

{ "error": "This token can only read this vault." }
CodeWhen it happensWhat to do
400A field is missing or the format is wrongFix the request. The message says what.
401Token missing, malformed, invalid, revoked or expiredAsk the person for a new token. Don't retry with the same one.
403No permission for the vault, calendar or attachments; account differs from the one in X-Paper-Account; developer mode off; banned accountDon't insist. Tell the person what's missing.
404Vault or page not foundCheck the ids with GET /vaults and GET /vaults/{vault}/pages. Vaults must be synced with Google Drive.
409Google or the calendar wasn't allowed for the API, or the person revoked access in GoogleThe person needs to open the app and allow it again in Settings → Developer.
413File or text too largeSplit or shrink it. See Limits.
423Page protected by a passwordLeave the page alone. No token opens it.
429Request or upload limitWait and try again, with growing intervals.
500An error on our sideTry again in a few minutes. If it repeats, tell support.
502Google Drive or Google Calendar failedTry again later.
503Service under maintenanceTry again later.

Retrying

Retrying only makes sense on 429, 500, 502 and 503. Use growing intervals and a cap on attempts. The other codes don't change by themselves.

On this page