Documentation

Get API key details

GET
/v1/account/api-keys/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Authenticate using an API Key:

Authorization: Bearer rk_live_your-api-key

In: header

Path Parameters

id*string

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://api.routeany.com/v1/account/api-keys/string"
{
  "id": "string",
  "key": "string",
  "key_prefix": "string",
  "name": "string",
  "scopes": [
    "string"
  ],
  "rate_limit_rpm": 0,
  "is_active": true,
  "last_used_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "expires_at": "2019-08-24T14:15:22Z"
}
{
  "type": "https://api.routeany.com/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or missing API key",
  "code": "AUTH_INVALID_TOKEN"
}
{
  "type": "https://api.routeany.com/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "The requested resource was not found",
  "code": "RESOURCE_NOT_FOUND"
}