TenkaTenka
Sign in

Tenka Help Center › Developer area › BI dataset catalog

Analytics

BI dataset catalog

GET/api/v1/analitico

The 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

NameInTypeRequiredDescription
AuthorizationheaderstringyesBearer followed by the key. Alternative: X-API-Key header.

Response fields

NameTypeDescription
datasetsarrayAvailable datasets.
datasets[].chavestringKey to use in the URL or in colunas.
datasets[].nomestringName.
datasets[].colunasarrayThe columns.
datasets[].colunas[].chavestringKey to use in the URL or in colunas.
datasets[].colunas[].rotulostringField label as the screen shows it.
datasets[].colunas[].tipostringType, in the screen's vocabulary.
datasets[].colunas[].sensivelbooleantrue when the column only comes for keys with See Values.
datasets[].colunas[].filtravelbooleantrue when the column accepts filters.
datasets[].colunas[].campoDaEmpresabooleantrue for company-created fields (only returned when asked by name).
limiteintegerRow ceiling per query.
parametrosstringSummary of accepted parameters.
avisostringText notice about the response.

Status codes

HTTPDescription
200Catalog

Error messages

HTTPMessage (erro field)When it happens
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.
429limite de requisições excedido (120/min)The key went over its per-minute limit. Wait for Retry-After.