Analytics
BI dataset catalog
GET
/api/v1/analiticohttps://tenka.app.br/api/v1/analiticoThe catalog of BI datasets the key can query, with columns, type and whether each is sensitive or filterable.
Key scope
Any key of the account (read is enough).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | yes | Bearer followed by the key. Alternative: X-API-Key header. |
Response fields
| Name | Type | Description |
|---|---|---|
datasets | array | Available datasets. |
datasets[].chave | string | Key to use in the URL or in colunas. |
datasets[].nome | string | Name. |
datasets[].colunas | array | The columns. |
datasets[].colunas[].chave | string | Key to use in the URL or in colunas. |
datasets[].colunas[].rotulo | string | Field label as the screen shows it. |
datasets[].colunas[].tipo | string | Type, in the screen's vocabulary. |
datasets[].colunas[].sensivel | boolean | true when the column only comes for keys with See Values. |
datasets[].colunas[].filtravel | boolean | true when the column accepts filters. |
datasets[].colunas[].campoDaEmpresa | boolean | true for company-created fields (only returned when asked by name). |
limite | integer | Row ceiling per query. |
parametros | string | Summary of accepted parameters. |
aviso | string | Text notice about the response. |
Status codes
| HTTP | Description |
|---|---|
| 200 | Catalog |
Error messages
| HTTP | Message (erro field) | When it happens |
|---|---|---|
| 401 | chave de API ausente ou inválida | No key header, revoked key or typo. |
| 401 | chave sem empresa vinculada | The key exists but is not linked to an account. Create another one in Settings › API. |
| 403 | conta de demonstração: a API pública está desligada na vitrine | The call reached the demo account, where the public API is turned off. |
| 403 | identidade da chave de API irregular | The account refuses keys with irregular identity (deactivated person or ownerless key). The body brings motivo and comoResolver. |
| 429 | limite de requisições excedido (120/min) | The key went over its per-minute limit. Wait for Retry-After. |