Staking Data
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.

PATCH
/public/billing/api-keys/{id}
X-API-Key<token>

In: header

Path Parameters

id*string

The UUID of the API key to update.

Formatuuid

Request Body

application/json

label?string

New human-readable name for the key.

Lengthlength <= 255
is_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