Create a webhook subscription
curl --request POST \
--url https://app.eloout.com/api/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": []
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: []})
};
fetch('https://app.eloout.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/webhooks"
payload = {
"url": "<string>",
"events": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"id": "9e0f1a2b-3c4d-4e5f-8a7b-8c9d0e1f2a3b",
"url": "https://hooks.example.com/eloout",
"events": [
"opportunity.stage_changed"
],
"description": "ERP sync",
"status": "active",
"disabledAt": null,
"disabledReason": null,
"createdAt": "2026-11-20T15:04:05.000Z",
"secret": "whsec_example_not_a_real_secret"
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request is not valid",
"details": {
"fieldErrors": {
"limit": [
"At most 100"
]
}
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Create a webhook subscription
Deliveries are signed: see the webhooks section of this document. A subscription belongs to the organization, not to the key: revoking the key that created it does not delete it (use DELETE /webhooks/{id}).
Requires the webhooks:write permission.
POST
/
webhooks
Create a webhook subscription
curl --request POST \
--url https://app.eloout.com/api/v1/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": []
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: []})
};
fetch('https://app.eloout.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/webhooks"
payload = {
"url": "<string>",
"events": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"id": "9e0f1a2b-3c4d-4e5f-8a7b-8c9d0e1f2a3b",
"url": "https://hooks.example.com/eloout",
"events": [
"opportunity.stage_changed"
],
"description": "ERP sync",
"status": "active",
"disabledAt": null,
"disabledReason": null,
"createdAt": "2026-11-20T15:04:05.000Z",
"secret": "whsec_example_not_a_real_secret"
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request is not valid",
"details": {
"fieldErrors": {
"limit": [
"At most 100"
]
}
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Autorizaciones
Cuerpo
application/json