TenkaTenka
Sign in

Tenka Help Center › Developer area › Key's account

Account

Key's account

GET/api/v1/me

Returns the account the key sees. It is the call to test a key and learn the account identifier.

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
tenantintegerAccount identifier.
nomestringName.
cnpjstringAccount CNPJ.
planostringSubscribed plan.
apistringAPI version that answered.

Status codes

HTTPDescription
200OK
401Missing or invalid key

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.
200, with erro in the bodynão foi possível carregar o tenantThe account could not be read. Comes with status 200.