APIAutenticação

Obter informações do principal autenticado

GET
/me
X-API-Key<token>

Chave de API (prefixo nbr_) ou Token de Acesso Pessoal (prefixo pat_)

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/me"

{  "type": "api_key",  "principal_id": "nbr_abc123",  "tenant_id": "tnt_abc123",  "organization_id": "org_abc123",  "role": "org_editor",  "scopes": [    "brokers:read",    "brokers:write"  ]}

{  "type": "unauthorized",  "title": "Authentication Required",  "status": 401,  "detail": "authentication required",  "code": "unauthorized.auth_required",  "request_id": "req_abc123",  "timestamp": "2026-02-15T12:00:00Z",  "documentation_url": "https://docs.nobur.com.br/errors/unauthorized"}