Referência da APIAccount
Check an API key
GET
Returns the workspace that owns the API key and the key's Dataflow access. Free; does not count against the key's quotas; answers whatever that access, none included. Every /v1 route takes the key in the X-Api-Key header and answers the same 401, 403 and 429 when it is refused, 403 api_key_scope when the key's access does not cover the route.
ApiKeyAuthheader
X-Api-Key<token>The key is valid
application/json- response
tenant*The workspace that owns the key
api_key_id*stringThe id of the key sent
dataflow_access*stringWhat the key may do in Dataflow, set in the dashboard's API keys page: none (only this route), read, write (also create, change, launch, delete) or admin (also webhooks, cloud storage, deliveries and purge=true). A route above it answers 403 api_key_scope.
Value in
"none""read""write""admin"curl -X GET 'https://dataflow.piloterr.com/v1/account'Example Response
{
"tenant": {
"id": "cm1a2b3c4000008jx7h2kq9mz",
"slug": "acme"
},
"api_key_id": "cm2r5t9ke000008l7a3vq8dyw",
"dataflow_access": "write"
}