Webhook endpoints
The Webhook endpoint object
Attributes
idstringUnique identifier of the object (prefixed, opaque).
objectstringwebhook_endpointurlstringdescriptionstringnullableenabled_eventsarray of stringbrandsarray of objectnullablestatusenumPossible values:
enabled·disabledapi_versionstringlivemodebooleantruefor live data,falsefor the test-mode sandbox.createdintegerTime at which the object was created (unix timestamp, seconds).
secretstring
{
"id": "we_034eTM6NVwPXgyvF595hZZ",
"object": "webhook_endpoint",
"url": "https://hooks.example.com/skoup",
"description": "Rewrite the product copy so the frame warranty is stated.",
"enabled_events": [
"string"
],
"brands": [
{}
],
"status": "enabled",
"api_version": "v1",
"livemode": true,
"created": 1790000000,
"secret": "whsec_9fW2kLq7Rt4mXz1Vb8Nc3Hy6"
}Create a webhook endpoint
POST/v1/webhook_endpoints
The response carries the signing secret (whsec_…) — the only time
the API returns it. Store it to verify the X-Skoup-Signature header.
Parameters
urlstringrequireddescriptionstringnullableenabled_eventsarray of stringrequiredbrandsarray of stringnullabledisabledboolean
Returns
Returns the created webhook_endpoint object. Raises an error if something goes wrong.
curl
curl -X POST https://api.skoup.ai/v1/webhook_endpoints \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc" \
-H "Content-Type: application/json" \
-d '{"url":"https://nordvelo.fr","enabled_events":["string"],"description":"Rewrite the product copy so the frame warranty is stated."}'{
"id": "we_034eTM6NVwPXgyvF595hZZ",
"object": "webhook_endpoint",
"url": "https://hooks.example.com/skoup",
"description": "Rewrite the product copy so the frame warranty is stated.",
"enabled_events": [
"string"
],
"brands": [
{}
],
"status": "enabled",
"api_version": "v1",
"livemode": true,
"created": 1790000000,
"secret": "whsec_9fW2kLq7Rt4mXz1Vb8Nc3Hy6"
}Update a webhook endpoint
PATCH/v1/webhook_endpoints/{endpoint}
Send disabled: true to pause it, false to enable it again.
Parameters
endpointstringrequiredWebhook Endpoint id (
we_…).urlstringrequireddescriptionstringnullableenabled_eventsarray of stringrequiredbrandsarray of stringnullabledisabledboolean
Returns
Returns the updated webhook_endpoint object. Raises an error if something goes wrong.
curl
curl -X PATCH https://api.skoup.ai/v1/webhook_endpoints/we_034ebikiyFV76y9oiMvhxm \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc" \
-H "Content-Type: application/json" \
-d '{"url":"https://nordvelo.fr","enabled_events":["string"],"description":"Rewrite the product copy so the frame warranty is stated."}'{
"id": "we_034eTM6NVwPXgyvF595hZZ",
"object": "webhook_endpoint",
"url": "https://hooks.example.com/skoup",
"description": "Rewrite the product copy so the frame warranty is stated.",
"enabled_events": [
"string"
],
"brands": [
{}
],
"status": "enabled",
"api_version": "v1",
"livemode": true,
"created": 1790000000,
"secret": "whsec_9fW2kLq7Rt4mXz1Vb8Nc3Hy6"
}Retrieve a webhook endpoint
GET/v1/webhook_endpoints/{endpoint}
Parameters
endpointstringrequiredWebhook Endpoint id (
we_…).
Returns
Returns the webhook_endpoint object. Raises an error if something goes wrong.
curl
curl https://api.skoup.ai/v1/webhook_endpoints/we_034ebikiyFV76y9oiMvhxm \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"{
"id": "we_034eTM6NVwPXgyvF595hZZ",
"object": "webhook_endpoint",
"url": "https://hooks.example.com/skoup",
"description": "Rewrite the product copy so the frame warranty is stated.",
"enabled_events": [
"string"
],
"brands": [
{}
],
"status": "enabled",
"api_version": "v1",
"livemode": true,
"created": 1790000000,
"secret": "whsec_9fW2kLq7Rt4mXz1Vb8Nc3Hy6"
}List webhook endpoints
GET/v1/webhook_endpoints
Parameters
limitintegerNumber of objects to return, between 1 and 100 (default 20).
starting_afterstringCursor: the
idof the last object of the previous page.
Returns
A dictionary with a data property holding up to limit webhook_endpoint objects, newest first, and has_more telling whether another page exists. Raises an error if something goes wrong.
curl
curl https://api.skoup.ai/v1/webhook_endpoints?limit=3 \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"{
"object": "list",
"url": "/v1/webhook_endpoints",
"has_more": false,
"data": [
{
"id": "we_034eTM6NVwPXgyvF595hZZ",
"object": "webhook_endpoint",
"url": "https://hooks.example.com/skoup",
"description": "Rewrite the product copy so the frame warranty is stated.",
"enabled_events": [
"string"
],
"brands": [
{}
],
"status": "enabled",
"api_version": "v1",
"livemode": true,
"created": 1790000000,
"secret": "whsec_9fW2kLq7Rt4mXz1Vb8Nc3Hy6"
}
]
}Delete a webhook endpoint
DELETE/v1/webhook_endpoints/{endpoint}
Parameters
endpointstringrequiredWebhook Endpoint id (
we_…).
Returns
Returns an object with deleted: true. Raises an error if something goes wrong.
curl
curl -X DELETE https://api.skoup.ai/v1/webhook_endpoints/we_034ebikiyFV76y9oiMvhxm \
-H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"{
"id": "we_034ebikiyFV76y9oiMvhxm",
"object": "webhook_endpoint",
"deleted": true
}