Team Management

Revoke previous API key secret

Changed on

Ends a rotation's grace period early. The secret replaced by the last rotation stops working now; the current secret is unaffected. Responds with revoked set to false when there is no previous secret in its grace period.

post/api-keys/{id}/revoke-previous

Request

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

Path parameters

idstring required

The key's publicId. The key's current secret is also accepted for backward compatibility.

Response

Previous secret revoked, or there was none to revoke

revokedboolean

Whether a previous secret was revoked by this request.

Changes