Piloterr
Referência da APIAccount

Check an API key

GET
/v1/account

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.

Autorização

ApiKeyAuth
headerX-Api-Key<token>

Corpo da resposta

The key is valid

application/json
  1. response
tenant*

The workspace that owns the key

api_key_id*string

The id of the key sent

dataflow_access*string

What 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"
Example Request
curl -X GET 'https://dataflow.piloterr.com/v1/account'
Example Response
{
  "tenant": {
    "id": "cm1a2b3c4000008jx7h2kq9mz",
    "slug": "acme"
  },
  "api_key_id": "cm2r5t9ke000008l7a3vq8dyw",
  "dataflow_access": "write"
}