TenkaTenka
Sign in

Tenka Help Center › Developer area › Getting started

Getting started

From key to first GET in five minutes.

  1. Whoever administers the account creates the key under Settings › API (keys): pick the scope — read-only or read and write — and the responsible user (every write has an author).
  2. Keep the key: it is shown once. A lost key is revoked and another is created.
  3. Send the key in the Authorization header (Bearer) on every call. No key: 401.
  4. Start with GET /api/v1/me (returns the key's account), then list a resource with limit and offset, or incrementally with desde and depoisDe.

Base URL

Every call goes to the URL below, always over HTTPS. Response bodies are UTF-8 JSON; field names are stable within v1.

Base URL
https://tenka.app.br/api/v1

First call: the key's account

cURL
curl "https://tenka.app.br/api/v1/me" \
  -H "Authorization: Bearer $TENKA_API_KEY"
200 · application/json
{
  "tenant": 42,
  "nome": "Comercial Aurora Ltda",
  "cnpj": "12.345.678/0001-00",
  "plano": "Evoluir",
  "api": "v1"
}

GET /api/v1/me

Next steps

Read Authentication to choose the right scope and Pagination to sync without full scans; then open the reference of the resource you will integrate: each page has the fields, the errors and the ready-made call in seven languages.