docs
  1. Resources
  2. Webhooks V2
  3. Create A Webhook Event

Create a webhook event

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

Webhooks

​

Event Subscription Management

Create a webhook event

​

Creates an event definition for the given producer.

Path Parameters

  • Producer name (identifier).

Body·

required
application/json
  • Event name.

  • Human-readable explanation of when the event is emitted.

  • Subset of JSON Schema describing validated fields present in webhook payloads for this event.

    Properties: 4

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/webhooks/producers/{producerIdentifier}/events
let event = {
  name: "customer-created",
  description: "The event occurs whenever a new customer is registered.",
  targetSchema: {
    type: "object",
    properties: { shopCountryId: { type: "integer" } },
    required: ["shopCountryId"],
  },
};

let response = await client.apis.Webhooks.createWebhookProducerEvent(
  { producerIdentifier: "loyalty-addon" },
  { requestBody: event },
);
console.log(response.body.id);

{
  "id": 1,
  "name": "customer-created",
  "description": "The event occurs whenever a new customer is registered or connected via a social network on the checkout application.",
  "targetSchema": {
    "type": "object",
    "properties": {
      "companyId": {
        "type": "integer"
      },
      "shopCountryId": {
        "type": "integer"
      }
    },
    "required": [
      "companyId",
      "shopCountryId"
    ]
  }
}

Models

​
​

Last updated: December 02, 2026