AIXBT Docs
REST APIReference

Get API Key Information

GET
/v2/api-keys/info

Returns metadata and expiry for the authenticated API key.

Authorization

ApiKeyAuth
x-api-key<token>

API key to authorize requests

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/v2/api-keys/info"
{
  "status": 200,
  "data": {
    "id": "string",
    "name": "string",
    "type": "string",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}
{
  "error": "string",
  "message": "string",
  "code": "string",
  "status": 0,
  "data": null,
  "meta": {},
  "details": {},
  "pagination": {
    "page": 1,
    "limit": 1,
    "totalCount": 0,
    "hasMore": true
  },
  "limitType": "minute",
  "retryAfterMs": 0,
  "limits": {
    "minute": {
      "limit": 0,
      "remaining": 0,
      "resetAt": "2019-08-24T14:15:22Z"
    },
    "day": {
      "limit": 0,
      "remaining": 0,
      "resetAt": "2019-08-24T14:15:22Z"
    }
  },
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}