Spanish Total.js
English
Documentation For AI agents
Contents

Errors

The errors the REST API returns and what to do about them.

.md GitHub
On this page

Errors of the render endpoint come back as a JSON array with an error text.

StatusAnswerWhat to do
400[{"error":"Invalid template ID"}]Send the id field.
400[{"error":"Template not found"}]Check the template ID, for example demo/invoice. Use the identifiers of the profile and the template, as shown on the template card.
401An HTML page that says 401 UnauthorizedThe token is missing or wrong, or the address is blocked after too many wrong tokens.
401[{"name":"401","error":"401: Unauthorized"}]On /profiles/: the token does not have Allow read list of profiles.

Blocked after wrong tokens

After more than five requests with a wrong token from one address, OpenTemplates answers 401 to every request from that address, also with a correct token. The block ends by itself within 15 minutes. Fix the token in your app and wait before you try again.

Made in Europe