cURL
curl --request POST \ --url https://api.vela.dev/v1/apps/{appId}/keys/rotate \ --header 'Authorization: Bearer <token>'
{ "app": { "id": "3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c", "accountId": "acc-uuid", "name": "Order Service", "slug": "order-service", "apiKeyPrefix": "vela_live_xyz", "createdAt": "2024-06-01T12:00:00.000Z", "updatedAt": "2024-06-01T14:00:00.000Z" }, "apiKey": "vela_live_newkeyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }
Generates a new API key for the app. The old key is immediately revoked — this action is irreversible.
Client secret for management API access. Format: vela_cs_...
vela_cs_...
App UUID or slug
New API key
Show child attributes
Full API key (only returned on creation or rotation)