Create an Event
Create an Event
Create an Event
POST
https://api.moltin.com/v2/integrations
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
configuration | object | The webhook configuration object |
observes | array | An array of events you want to observe |
enabled | boolean | Should the event trigger or not. Default: |
integration_type | string |
|
description | string | A description for the event |
name | string | The name of the event |
type | string | Represents the type of object |
Configuration Object
So that we can properly fire a webhook
, you will need to provide some configuration when creating a new event.
Configuring a webhook
Webhooks are delivered using POST
to the configured url
. You may specify a secret_key
which we will forward __X-MOLTIN-SECRET-KEY
along with the request as a header.
X-MOLTIN-INTEGRATION-TRIGGER
will also be added to the request headers, this allows you to process several events at the same url
. This will be in the format of an observable event key.
The webhook configuration object has the following structure.
Attribute | Type | Description |
| string | A required URL the observable event will fire. |
| string | A optional header. Useful to authenticate the response came from Moltin. Will be sent as |
Last updated