Team Management

Updates an existing API key's name and/or rate limit. Only API keys belonging to the authenticated team can be updated.

put/api-keys/{id}

Request

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

Path parameters

idstring required

The publicId of the key to update. The key's current secret is also accepted for backward compatibility.

Request body

namestring

Optional new name for the API key

rateLimitinteger

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

budgetCentsinteger nullable

Optional new 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": "Updated Production Key",
  "rateLimit": 2000,
  "budgetCents": 5000
}

Response

API key updated successfully

Changes