SmakeSmake API Docs
EndpointsWebhooks

List webhooks

GET
/webhooks

You can configure webhook endpoints via the API to be notified about events that happen in Smake (how deliveries, retries and signatures work is described in Basic Usage → Webhooks).

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

Available Events

Currently, these are all events you can listen to:

  • order.completed
  • order.prepared
  • order.failed
  • order.cancelled
  • variant.completed
  • variant.failed
  • logo.completed
  • logo.failed
  • shipment.prepared
  • draft-order.checked — a draft order passed the automatic checks
  • draft-order.failed — a draft order failed the automatic checks, see its failure_message
  • merchant-variant.designer-condition.created — the designer configuration of a variant was created
  • merchant-variant.designer-condition.changed — the designer configuration of a variant changed

List

Returns a collection of your webhooks.

AuthorizationbearerAuth

Authorization

bearerAuth
AuthorizationBearer <token>

API token as bearer token — you receive a test and a live token, there is no switch between them. See Setup → Authentication and Setup → Test mode.

In: header

Query Parameters

page?integer

Page number to return — see Basic Usage → Pagination.

Default1
per_page?integer

Number of objects per page (default 25, maximum 100) — see Basic Usage → Pagination.

Rangevalue <= 100
Default25

Header Parameters

Accept*"application/json"

The API only responds with JSON — this header is mandatory on every request (see Setup → Headers).

Default"application/json"

Value in

  • "application/json"

Response Body

application/json

application/json

Request example
curl -X GET "https://example.com/webhooks" \  -H "Accept: application/json"
{  "data": [    {      "id": 1,      "description": {        "en": "This is webhook listens to the order completed event."      },      "version": "2022-02-01",      "state": "active",      "url": "https://requestb.in/xjggz4xj",      "events": [        {          "id": 3,          "name": "order.completed"        }      ],      "created_at": "2022-02-01T00:00:00+00:00",      "updated_at": "2022-02-01T00:00:00+00:00"    },    {      "id": 2,      "description": {        "en": "This is webhook listens to the order cancelled event."      },      "version": "2022-02-01",      "state": "inactive",      "url": "https://requestb.in/1hd29kc1",      "events": [        {          "id": 2,          "name": "order.cancelled"        }      ],      "created_at": "2022-02-01T00:00:00+00:00",      "updated_at": "2022-02-01T00:00:00+00:00"    }  ],  "links": {    "first": "https://api.smake.io/v2/webhooks?page=1",    "last": "https://api.smake.io/v2/webhooks?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "path": "https://api.smake.io/v2/webhooks",    "per_page": 25,    "to": 2  }}