API ReferenceWebhooks

Rotate webhook secret

Markdown
POST/api/v3/webhook_subscriptions/{id}/rotate_secret

Generates a new signing secret for the webhook subscription. The new secret is returned only in this response.

Authorization

ApiKeyAuth
x-api-key<token>

API key authentication

In: header

Path Parameters

idstringRequired

Webhook subscription ID

Format: webhookSubscriptionId

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://backend.composio.dev/api/v3/webhook_subscriptions/string/rotate_secret"
{
  "id": "string",
  "secret": "string"
}
{
  "error": {
    "message": "string",
    "code": 0,
    "slug": "string",
    "status": 0,
    "request_id": "string",
    "suggested_fix": "string",
    "errors": [
      "string"
    ]
  }
}
{
  "error": {
    "message": "string",
    "code": 0,
    "slug": "string",
    "status": 0,
    "request_id": "string",
    "suggested_fix": "string",
    "errors": [
      "string"
    ]
  }
}
{
  "error": {
    "message": "string",
    "code": 0,
    "slug": "string",
    "status": 0,
    "request_id": "string",
    "suggested_fix": "string",
    "errors": [
      "string"
    ]
  }
}