Skip to main content
PATCH
Update an API key

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

keyId
string
required

Identifier of the API key.

Example:

"key_01HXYZ"

Body

application/json
name
string

New display name.

Example:

"Updated Key Name"

expiresAt
string<date-time> | null

New expiry datetime. Set to null to remove expiry.

Example:

"2025-01-01T00:00:00Z"

Response

API key updated.

success
boolean
Example:

true

data
object

An API key and its metadata. The full key field is present only in the create response; list responses include keyHint instead.