Credentials
Update or rotate credential
Changed onUpdate or rotate a credential.
patch/credentials/{credential_id}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /credentials/{credential_id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Path parameters
credential_idstring required
ID of the credential.
Example:cred_6968b39855d91a3561684b32
Request body
Example request
{
"active": true,
"name": "Stripe live key",
"runtime_config": {
"headers": {
"Stripe-Version": "2024-04-10"
},
"query_params": {
"locale": "en-GB"
}
},
"server_variables": {
"region": "eu"
},
"token": "example-secret",
"type": "bearer_token"
}Response
Successful Response
Example response
{
"active": true,
"api": {
"name": "stripe",
"vendor": "stripe.com",
"version": "2024-04-10"
},
"created_at": "2026-01-15T09:30:00Z",
"credential_id": "cred_01HZX9...",
"details": {
"field_name": "Authorization",
"hint": "…live_abcd",
"location": "header"
},
"name": "Stripe live key",
"provider": "static",
"type": "api_key"
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info