Rotate Clerk OAuth application secret
Rotate the client secret for an OAuth application in a connected Clerk application.
← All Clerk endpoints · Capability overview
/v1/clerk/oauth-applications/{oauth_application_id}/rotate-secrethttps://api.vee3.io/v1/clerk/oauth-applications/{oauth_application_id}/rotate-secret
Rotate the client secret for an OAuth application in a connected Clerk application.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
clerk.rotate_oauth_application_secretParameters2 fields
clerk_instance_idstringOptionalClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
oauth_application_idstringRequiredClerk OAuth application id (oa_...) to retrieve, update, or delete.
Response19 fields
oauth_applicationobject18 fieldsOAuth application summary with the new client_secret.
oauth_applicationobjectidstringOAuth application id (oa_...).
namestringOAuth application display name.
client_idstringOAuth client id issued to authorized clients.
client_secretstringOAuth client secret. Empty for public clients. Treat as high-privilege — do not log.
client_image_urlstringURL of the OAuth application logo when set.
client_uristringHomepage URI for the OAuth client.
redirect_urisstring[]Allowed redirect URIs for the OAuth authorization flow.
scopesstringSpace-delimited scopes granted by this OAuth application.
consent_screen_enabledbooleanWhether the consent screen is shown during authorization.
publicbooleanWhether this is a public OAuth client (PKCE-capable, no client secret).
pkce_requiredbooleanWhether PKCE is required for the authorization flow.
dynamically_registeredbooleanWhether the OAuth application was registered dynamically.
instance_idstringClerk instance id (ins_...) that owns this OAuth application.
authorize_urlstringAuthorization endpoint URL for this OAuth application.
token_fetch_urlstringToken endpoint URL for exchanging authorization codes.
discovery_urlstringOpenID Connect discovery document URL.
created_atintegerUnix timestamp in milliseconds when the OAuth application was created.
updated_atintegerUnix timestamp in milliseconds when the OAuth application was last updated.
HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required