Replace an automation's webhook signing secret
curl --request POST \ --url https://example.com/api/v1/projects/example/automations/example/webhook-secret \ --header 'Authorization: Bearer <token>'Requires the projects.manage permission and reach to the project. The automation must have the INCOMING_WEBHOOK trigger. Creates or replaces its signing secret and returns it once, with the webhook URL; the previous secret stops working. Another system then POSTs { taskId } or { taskIds } to the URL with a unique X-Chelsea-Delivery header and X-Chelsea-Signature: sha256=<hex HMAC-SHA256 of the raw body with the secret>. A wrong signature answers 401, an unknown URL 404, and a delivery id already received runs nothing again.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Project automation identifier (CUID2).
Project automation identifier (CUID2).
Responses
Section titled “Responses”The webhook URL and the new secret.
object
An automation’s webhook URL and its new signing secret.
object
The new signing secret, shown only in this response.
Where another system sends its deliveries.
Example generated
{ "data": { "secret": "example", "webhookUrl": "example" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC