provider Clients POST
/v1/connected_apps/clients/{client_id}/secrets/rotate/start @utdk/stytch
/v1/connected_apps/clients/{client_id}/secrets/rotate/start Rotatestart
Initiate the rotation of a Connected App client secret. After this endpoint is called, both the client's `client_secret` and `next_client_secret` will be valid. To complete the secret rotation flow, update all usages of `client_secret` to `next_client_secret` and call the Rotate Secret Endpoint to complete the flow.
Secret rotation can be cancelled using the Cancel Secret Rotation endpoint.
**Important:** This is the only time you will be able to view the generated `next_client_secret` in the API response. Stytch stores a hash of the `next_client_secret` and cannot recover the value if lost. Be sure to persist the `next_client_secret` in a secure location. If the `next_client_secret` is lost, you will need to trigger a secret rotation flow to receive another one.
- client_id path required
- The ID of the client.
- string
Try it
Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiConnectedappsV1ConnectedAppsClientsSecretsRotatestart()