On this page6 sections
POST/api/integrations/rotate-oauth-secretIntegrationsPermission: integrations.create
Rotate OAuth2 Client Secret
Regenerates the `client_secret` for an existing OAuth2 M2M application and invalidates the previous secret.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
idstring (uuid)required
id parameter.
Responses
Select a status code to inspect schema.
OK — Client secret rotated.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/integrations/rotate-oauth-secret
curl -X POST "https://api.invoger.com/api/integrations/rotate-oauth-secret" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "id": "c1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c" }'Interactive playground
Response
application/json
{
"success": true,
"message": "OAuth2 client secret rotated",
"data": {
"clientId": "inv_client_998123",
"clientSecret": "inv_secret_new..."
}
}