API Keys

Regenerate API key

Issue a new key value for an existing API key. The old value is immediately invalidated — all in-flight requests using it will be rejected. The key's ID, name, community binding, and access level are preserved.

Returns the new full key value once — store it immediately. Admin role required.

post/v1/communities/{communityId}/api-keys/{keyId}/regenerate

Request

  • Base URL: https://api.subo.ai
  • URL: https://api.subo.ai/v1/communities/{communityId}/api-keys/{keyId}/regenerate
  • Auth: API key in header X-API-Key

Path parameters

communityIdstring required

Community ID (Discord guild snowflake, serialized as string)

keyIdstring required

Response

New key value (shown once — store immediately)

Example response

{
  "data": {
    "api_key": "sbo_live_..."
  }
}

Changes

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