Service Keys

Regenerate service key

Changed on

Generate new JWT value for existing key. The old key stops working within a few seconds. Update your backend services with the new key before regenerating in production.

post/projects/{id}/service-keys/{keyId}/regenerate

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

keyId, string uuid required

Response

Key regenerated - save the new key_value immediately!

ServiceKey required

Service role key for admin operations. WARNING: Bypasses all RLS - backend use only!

id, string uuid required
project_id, string uuid
name, string required

Descriptive name for the key

key_value, string

Full JWT token for Authorization header. Returned on create, get, and list (decrypted from storage). Store securely - NEVER expose in frontend code!

key_prefix, string required

First 12 characters of the key for display/identification

permissions, string[] required

Operations this key may perform. ["*"] grants full admin access (default for keys created without an explicit scope). Scoped keys list specific permissions, e.g. ["functions.invoke", "locks.manage"].

created_at, string date-time
updated_at, string date-time

Example response

{
  "permissions": [
    "*"
  ]
}

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter id

    • breaking

      the response's body type changed from no type to object for status

    8 more changes in this revision