Complete the rotation of a Connected App client secret started with the Rotate Secret Start Endpoint. After this endpoint is called, the client's next_client_secret becomes its client_secret and the previous client_secret will no longer be valid.
Rotate Connected App Secret
POST
https://test.stytch.com/v1/connected_apps/clients/{client_id}/secrets/rotatePath parameters
client_id* string
Response fields
status_code int
request_id string
connected_app object
// Backend SDKs coming soon.
RESPONSE
200
{
"client_id": "connected-app-test-d731954d-dab3-4a2b-bdee-07f3ad1be888",
"client_secret_last_four": "n3w_",
"next_client_secret_last_four": null
}