Tokoman

Developers

Errors and codes

Every failure is a JSON body with a sentence you can show and, where it helps, a code you can branch on.

json
{ "success": false, "error": "issueDate: Required", "code": "PAYLOAD_VALIDATION_FAILED", "version": "v1" }
HTTPCodeMeaning
401No key, or a key that is not valid. Every invalid key gets the same answer
403scope_requiredYour key does not hold the scope; requiredScope says which
403not_available_to_keysA signed-in person can do this; a key cannot
403ORGANISATION_SUSPENDEDThe organisation is suspended
402PAYMENT_REQUIREDThe wallet cannot cover the next page
402PLAN_LIMIT_REACHEDThe plan's pages are used and it has no overage
404TEMPLATE_NOT_FOUNDNo such template, or no such version
409TEMPLATE_NOT_ACTIVEThe template is archived or has no active version
422PAYLOAD_VALIDATION_FAILEDThe data does not match the template's schema; the message names the field
429Too many requests: 600 a minute per key

Render failures

A document that was accepted but could not be rendered comes back with status failed and one of these on errorCode: TEMPLATE_VERSION_MISSING, TEMPLATE_COMPILE_FAILED, RENDER_TIMEOUT, ENGINE_CRASHED, STORAGE_FAILED, EMPTY_OUTPUT. The message says what the engine complained about. Failed documents are not charged.