provider Clients POST /v1/m2m/clients/{client_id}/secrets/rotate
@utdk/stytch /v1/m2m/clients/{client_id}/secrets/rotate
Rotate
Complete the rotation of an M2M client secret started with the [Start Secret Rotation Endpoint](https://stytch.com/docs/b2b/api/m2m-rotate-secret-start) [Start Secret Rotation Endpoint](https://stytch.com/docs/api/m2m-rotate-secret-start). 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.
client_id path required
The ID of the client.
string

Try it

Authentication
Configure credentials for Stytch API
apiM2mV1M2mClientsSecretsRotate
POST/v1/m2m/clients/{client_id}/secrets/rotate
Complete the rotation of an M2M client secret started with the [Start Secret Rotation Endpoint](https://stytch.com/docs/b2b/api/m2m-rotate-secret-start) [Start Secret Rotation Endpoint](https://stytch.com/docs/api/m2m-rotate-secret-start). 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.

Parameters

required

The ID of the client.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiM2mV1M2mClientsSecretsRotate()