API Keys
Update API key
PATCH
/auth/keys/{id}Updates the label or RPM limit of an existing API key. Session token required. Only the fields you include are changed — omitted fields are left as-is.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | Key ID from the list keys response. |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
| label | string | No | New label for the key. |
| rpm_limit | integer | No | New per-minute request cap. 0 = use account default (60 RPM). |
Example
curl -X PATCH https://api.pinstripes.io/auth/keys/4 \
-H "Authorization: Bearer <session-token>" \
-H "Content-Type: application/json" \
-d '{"label": "production", "rpm_limit": 120}'Response
{
"id": 4,
"label": "production",
"rpm_limit": 120
}