API Keys

Create API key

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

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

Request

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

Path parameters

communityIdstring required

Community ID (Discord guild snowflake, serialized as string)

Request body

namestring required
descriptionstring
expires_atstring date-time

ISO 8601 expiry timestamp. Omit for non-expiring key.

Example request

{
  "expires_at": "2027-01-01T00:00:00Z"
}

Response

Created key with api_key value (shown once — store immediately)

Changes

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