This documentation aims to provide all the information you need to work with our API.
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Get a list of all webhooks for the current organisation.
curl --request GET \
--get "https://web.signcustomiser.com/api/v2/webhooks" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"webhooks": [
{
"webhook_id": 1,
"topic": "product:created",
"url": "https://example.com/webhook",
"status": "active",
"secret": "abc123...",
"meta": {},
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
]
}
Register a new webhook endpoint to receive event notifications.
curl --request POST \
"https://web.signcustomiser.com/api/v2/webhooks" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"topic\": \"product:created\",
\"url\": \"https:\\/\\/example.com\\/webhook\",
\"meta\": []
}"
{
"webhook": {
"webhook_id": 1,
"topic": "product:created",
"url": "https://example.com/webhook",
"status": "active",
"secret": "abc123...",
"meta": {},
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}
Retrieve details for a specific webhook.
The ID of the webhook.
curl --request GET \
--get "https://web.signcustomiser.com/api/v2/webhooks/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"webhook": {
"webhook_id": 1,
"topic": "product:created",
"url": "https://example.com/webhook",
"status": "active",
"secret": "abc123...",
"meta": {},
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}
Update an existing webhook's topic, URL, or metadata.
The ID of the webhook.
curl --request PUT \
"https://web.signcustomiser.com/api/v2/webhooks/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"topic\": \"product:created\",
\"url\": \"https:\\/\\/example.com\\/webhook\",
\"meta\": []
}"
{
"webhook": {
"webhook_id": 1,
"topic": "order:created",
"url": "https://example.com/webhook-updated",
"status": "active",
"secret": "abc123...",
"meta": {},
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-02T00:00:00.000000Z"
}
}
Remove a webhook subscription.
The ID of the webhook.
curl --request DELETE \
"https://web.signcustomiser.com/api/v2/webhooks/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true
}
Retrieve example webhook payloads for a specific topic. If data exists for the current organisation, real data will be used. Otherwise, example data is returned.
The webhook topic to get examples for. Must be one of: product:created, order:created, form:submitted.
curl --request GET \
--get "https://web.signcustomiser.com/api/v2/webhook-examples/product:created" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"product": {
"product_id": 1,
"title": "Custom Neon: Hello World",
"description": "Text: Hello World\nColour: Red\nFont: Comics",
"description_html": "<p>Text: Hello World</p>\n<p>Colour: Red</p>\n<p>Font: Comics</p>",
"external_id": "1234",
"external_data": {},
"price": 10000,
"compare_price": 15000,
"customiser_id": 1,
"logo_upload_id": null,
"product_image_url": "https://d1no4rdxmwcuog.cloudfront.net/default/app-images/demonstration_image_1.jpg",
"uploads": [
{
"url": "https://d1no4rdxmwcuog.cloudfront.net/default/app-images/demonstration_image_1.jpg",
"type": "product_image"
}
],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}