Automations

Rotate an automation webhook secret

Changed on

Invalidates the current webhook secret and returns a replacement exactly once. Requires permission to change the automation; any other automation answers 404.

post/api/v0/automations/{automationId}/webhook/rotate

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

automationId, string required

Automation ID

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

RotateAutomationWebhook200ResponseBody required
webhook, object required

Changes