SmakeSmake API Docs
EndpointsWebhooks

Show a webhook

GET
/webhooks/{id}

Returns the webhook with the given id.

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

Path Parameters

id*integer

The ID of the resource.

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

application/json

Request example
curl -X GET "https://example.com/webhooks/0" \  -H "Accept: application/json"
{  "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"}