Create a webhook
curl --request POST \
--url https://go-fetch.io/api/v1/webhooks/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://go-fetch.io/api/v1/webhooks/"
payload = { "url": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://go-fetch.io/api/v1/webhooks/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"signing_secret": "<string>",
"failed_deliveries": 123,
"disabled_reason": "<string>",
"last_delivery_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"events": "<unknown>",
"is_active": true
}Webhooks
Create a webhook
Registers a URL for job events. The response carries signing_secret in full, the only time it is shown: every delivery is signed with it as sha256=<hex HMAC-SHA256 of the body> in the X-Webhook-Signature header.
POST
/
api
/
v1
/
webhooks
/
Create a webhook
curl --request POST \
--url https://go-fetch.io/api/v1/webhooks/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'import requests
url = "https://go-fetch.io/api/v1/webhooks/"
payload = { "url": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://go-fetch.io/api/v1/webhooks/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"signing_secret": "<string>",
"failed_deliveries": 123,
"disabled_reason": "<string>",
"last_delivery_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"events": "<unknown>",
"is_active": true
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
201 - application/json
Maximum string length:
200In full in the create response only; its first 8 characters and ... after.
Events to listen for