TenkaTenka
Sign in

Tenka Help Center › Developer area › Errors

Errors

Every message the API returns, with the reason and what to do.

Format

Every error comes back as JSON with an erro field, in Portuguese, human readable. Some add helper fields: recursos (what exists), dica, exemplo, codigo (for programmatic handling) and comoResolver.

401 · application/json
{"erro":"chave de API ausente ou inválida"}

Heads-up: on list reads and on /me, a parameter failure (invalid desde or depoisDe) or a query failure comes back with status 200 and the erro field in the body. Check for erro before reading data.

Status codes

HTTPDescription
400invalid request — malformed JSON or non-numeric id; the message names the field.
401no key or invalid key.
403the key lacks that scope (e.g. writing with a read-only key) or the resource is switched off in the account.
404resource or id does not exist — the response lists the available resources.
409the key has no responsible user; recreate it with one so the change has authorship.
429per-minute limit exceeded — wait the Retry-After.
HTTPMessage (erro field)When it happens
200, with erro in the bodyparâmetro 'desde' inválido — use 2026-08-27 ou 2026-08-27T14:30:00desde is neither a date nor a date-time. Comes with status 200.
200, with erro in the bodyparâmetro 'depoisDe' inválido — use o proximoId da resposta anteriordepoisDe is not a number. Comes with status 200.
200, with erro in the bodyfalha ao consultarThe query failed on our side. Comes with status 200; retry later and, if it persists, check the status page.
200, with erro in the bodynão foi possível carregar o tenantThe account could not be read. Comes with status 200.
207 · resultados[].erronome é obrigatórioCustomer or lead batch: nome missing or empty (the item comes back with status erro).
207 · resultados[].errotitulo é obrigatórioTicket batch: titulo missing or empty (the item comes back with status erro).
207 · resultados[].erroclienteId não existe nesta empresaTicket batch: clienteId does not belong to the account (the item comes back with status erro).
207 · resultados[].errotipoId não existe nesta empresaTicket batch: tipoId does not belong to the account (the item comes back with status erro).
207 · resultados[].errocontratoId não existe nesta empresaTicket batch: contratoId does not belong to the account (the item comes back with status erro).
400Idempotency-Key é obrigatória em escrita desde 2026-12-01 (aviso publicado em 2026-09-01): sem ela, um retry de rede cria o registro duas vezes. Envie um valor único por operação no cabeçalho Idempotency-Key.Write without Idempotency-Key after the mandatory date.
400JSON inválidoThe body is not a valid JSON object.
400lote vazioThe batch has no items.
400envie um array de itens: [{...}] ou {"itens":[{...}]}The body is neither an array of items nor an object with itens.
400id inválidoThe id in the URL is not a number.
400informe o datasetThe dataset key is missing from the URL.
401chave de API ausente ou inválidaNo key header, revoked key or typo.
401chave sem empresa vinculadaThe key exists but is not linked to an account. Create another one in Settings › API.
403conta de demonstração: a API pública está desligada na vitrineThe call reached the demo account, where the public API is turned off.
403identidade da chave de API irregularThe account refuses keys with irregular identity (deactivated person or ownerless key). The body brings motivo and comoResolver.
403esta chave é somente leitura — gere uma chave com escopo de escritaWrite with a read-only key.
403o log de alterações via API está desligado nesta conta (parâmetro API.LOG_ALTERACOES_ATIVO)The account turned off the API change log. The trail is still recorded and visible on screen.
404recurso sem trilha de alteraçõesThe resource has no change trail. The response lists those that do.
404dataset não encontrado: {dataset}The dataset does not exist or is not available to the account. Check the catalog.
405método não suportado (use GET, POST, PUT, PATCH ou DELETE)HTTP method the API does not serve.
409a chave não tem usuário responsável; recrie a chave em Configurações → API para que os registros criados tenham autoriaThe write key has no responsible user: without authorship nothing is saved.
409Idempotency-Key já usada com um corpo DIFERENTE — gere uma chave nova por operaçãoThe same Idempotency-Key came with another body.
409requisicao com esta Idempotency-Key ainda em processamento — aguarde e repitaThe same Idempotency-Key arrived while the first call was still running. Retry after Retry-After.
413lote com {n} itens; o teto é 200 por chamadaThe batch exceeds the per-call item ceiling.
422nome é obrigatórionome is missing or empty.
422não foi possível criar: {detalhe}The write was refused (for example, a value longer than the field allows). Details in the message.
429limite de requisições excedido (120/min)The key went over its per-minute limit. Wait for Retry-After.
500a consulta não rodouThe analytics query failed. Try fewer columns or another filter.