TenkaTenka
Sign in

Tenka Help Center › Developer area › Sandbox

Sandbox

How to get access and test without touching production.

The sandbox is a server separate from production, on the same version, with demo data that returns to its initial state every week. That is where you build and test the whole integration, writes included, with no risk to the company real data. Nothing leaves the sandbox: e-mail, WhatsApp, billing, invoices and webhooks are recorded as blocked.

How to get access

  1. Ask the account administrator (or sign in with a profile that can manage keys) and open Settings › API keys, in production.
  2. Click "Generate sandbox key". The key starts with tnk_sbx_ and is shown only once: keep it in a secrets vault.
  3. Point the base address of your integration to the sandbox address below and send the key as usual (Authorization: Bearer).
  4. When the integration is ready, generate a production key and switch address and key. The code does not change: the contract is the same.

Sandbox address

Sandbox address
https://sandbox.tenka.app.br/api/v1

Sandbox rules

LimitValueNote
Where the key workstnk_sbx_Only in the sandbox. Production rejects the sandbox key, and the sandbox rejects the production key, always with the explanation in the error body.
Key validity (days)90Once expired, the sandbox answers 403 saying so; generate another one.
Calls per key per day1000The counter resets at midnight. The per-minute ceiling of production also applies.
Data recreated every (days)7Every Sunday before dawn the data returns to the demo: what you wrote is gone. Do not keep anything important in the sandbox.

Errors only the sandbox returns

HTTPNote
403esta e uma chave de SANDBOX (tnk_sbx_) e so vale no ambiente de sandbox — use o endereco da sandbox, ou gere uma chave de producao em Configuracoes > Chaves de API
403este e o ambiente de SANDBOX e so aceita chave de sandbox (tnk_sbx_) — gere uma em Configuracoes > Chaves de API > Gerar chave de sandbox; a sua chave de producao nunca deve ser usada aqui
403esta chave de sandbox venceu — gere outra em Configuracoes > Chaves de API (validade de 90 dias)
429daily limit of the sandbox key reached — the counter resets at midnightRetry-After: 3600

Never use the production key for testing: if it leaks from the test environment, it opens the company real data. The sandbox key only opens demo data.