Team Management

Creates a new API key for the authenticated team. Optionally specify a name, rate limit, and budget for the API key. The response returns the new key in secret. Use publicId to refer to the key in later requests.

post/api-keys

Request

  • Base URL
    https://admin-api.exa.ai/team-management
  • URL
    https://admin-api.exa.ai/team-management/api-keys
  • Auth
    API key in header x-api-key

Request body

namestring

Optional name for the API key

rateLimitinteger

Optional rate limit for the API key (requests per second)

budgetCentsinteger nullable

Optional spending budget for the API key in the team's current billing period, in cents. It resets when the next billing period starts. Set to null to remove the budget.

Example request

{
  "name": "Production API Key",
  "rateLimit": 1000,
  "budgetCents": 5000
}

Response

API key created successfully

Example response

{
  "apiKey": {
    "publicId": "key_a1B2c3D4e5F6g7H8i9J0"
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      response property apiKey/id deprecated