SmakeSmake API Docs
EndpointsWebhooks

Create Webhook

POST
/webhooks

Creates a webhook endpoint that listens to one or more of the available events: it receives a POST request whenever one of the selected events happens in this app, such as an order or variant reaching a certain state.

Warning: You can create up to 10 webhooks per event.

Attributes

FieldTypeDescriptionRequired
urlstringThe URL to listen for incoming POST notification containing event information.yes
tokenstringA token to secure your url.
versionstringThe version in which the information should be transformed to. Default: current api version
descriptionjsonA json object of localized description.
statestringState of the endpoint (see below). Default: inactive
eventsarrayAn array of Event Objects (see below).yes

States

nameDefault
inactiveyes
active

Event Object

FieldTypeDescriptionRequired
namestringThe internal nameyes
AuthorizationBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-Api-Version?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

Request example
curl -X POST "https://example.com/webhooks" \  -H "X-Api-Version: 2022-02-01" \  -H "Content-Type: application/json" \  -d '{    "url": "https://requestb.in/1hd29kc1",    "token": "my-secret-token",    "description": {      "en": "This is a description"    },    "state": "active",    "events": [      {        "name": "order.completed"      }    ]  }'
{  "id": 3,  "description": [],  "version": "2022-02-01",  "state": "inactive",  "url": "https://example.org/webhooks/scribe-update-1775819550",  "events": [],  "created_at": "2026-04-10T11:09:42+00:00",  "updated_at": "2026-04-10T11:12:43+00:00"}