Skip to content
Dashboard
Theme
Theme

Rotate a confidential client's secret

POST /v1/oauth/clients/{client}/secret: Rotate a confidential client's secret.

View Markdown

POST /v1/oauth/clients/{client}/secret

Scope
oauth:write
Auth
Secret key (sk_…)
Since
1.0
  • client string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/oauth/clients/ocl_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/secret" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "oauth_client_secret",
"client_secret": "sk_test_example",
"previous_secret_expires_at": "2026-01-15T09:30:00Z"
}