Auth API reference

Auth API · Credentials

post/v1/apps/{app_id}/credentials/{client_id}/rotateAuth

Rotate M2M client secret

Path parameters

app_id*string

Id of the app.

client_id*string

Id of the client.

Response · 200 New secret generated and returned ONCE.

client_id*string

The M2M client id (used as `client_id` in the client-credentials grant).

client_secret*string

New plaintext client secret. Returned exactly once.

Example

Request

POST https://api.auth.productcraft.co/v1/apps/{app_id}/credentials/{client_id}/rotate
Authorization: Bearer YOUR_TOKEN

Response

{
  "client_id": "string",
  "client_secret": "string"
}