Attach webhook
POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/webhooks
Adds a URL to the instance’s webhook_target, alongside any URLs already there (see Webhook configuration).
Attaching a URL that is already attached updates its retries instead of adding it again.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
"https://your-app.com/webhooks/shuttle"The HTTPS URL that will receive webhooks
3The total number of delivery attempts for each webhook, including the first. For example, 3 means the first attempt plus up to two retries.
Leave it out (or send 0 or 1) for a single attempt with no retries.
Responses
Section titled “Responses”Webhook successfully attached
object
object
"5d41402abc4b2a76b9719d911017c592"Identifier for the attached URL. Use it to detach the webhook.
/^[a-f0-9]{32}$/"https://your-app.com/webhooks/shuttle"The URL you attached
3The retries value you sent, if any
Bad request
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Authentication required
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorised"}Was this page helpful?
What went wrong?
Thanks for telling us.