API Keys

Regenerate Api Key

Regenerate an API key.

This invalidates the old key and creates a new one with the same settings. ⚠️ The new key is only shown once!

Requires a Pro plan or higher. Regeneration mints a brand-new secret, so leaving it open let a lapsed subscriber re-arm API access indefinitely from a key issued while they were paying — create was gated and this was not, which made the create gate decorative after the first key.

post/api/v1/api-keys/{key_id}/regenerate

Request

  • Base URL: https://app.aimrank.io (the document declares no server; this is the origin it was published from)
  • URL: https://app.aimrank.io/api/v1/api-keys/{key_id}/regenerate
  • Auth: none declared

Path parameters

key_idstring required

Response

Successful Response

idstring required
namestring required
key_prefixstring required
scopesstring[] required
rate_limitinteger required
is_activeboolean required
expires_atstring date-time nullable required
last_used_atstring date-time nullable required
usage_countinteger required
created_atstring date-time required
api_keystring required

Changes

No recorded changes to this operation across all 1 revision of this API.