API Key Management
Update API Key
Updates the label, active status, or credit limit of an API key. All fields are optional. Revoked keys cannot be modified.
Authorization
apiKey X-API-Key<token>
In: header
Path Parameters
id*string
The UUID of the API key to update.
Format
uuidRequest Body
application/json
label?string
New human-readable name for the key.
Length
length <= 255is_active?boolean
Enable or disable the key without revoking it.
credit_limit?integer
Updated per-key credit cap. Set to null to remove the per-key limit.
Response Body
application/json
curl -X PATCH "https://api.stakingrewards.com/public/billing/api-keys/9bc34e12-0000-4def-8abc-112233445566" \ -H "Content-Type: application/json" \ -d '{ "label": "CI pipeline v2", "is_active": true, "credit_limit": 20000 }'{
"id": "9bc34e12-0000-4def-8abc-112233445566",
"api_key": "sr1-****-ef12",
"label": "CI pipeline v2",
"credit_limit": 20000,
"is_active": true,
"revoked_at": null,
"created_at": "2026-03-05T12:00:00Z"
}Empty
Empty
Empty
Create API Key POST
Creates a new API key under the same billing subscription. The full api_key value is only returned in this response — save it now.
Revoke API Key DELETE
Permanently revokes an API key. Revoked keys stop working immediately and cannot be re-activated. The last active key on an account cannot be revoked.