API endpointsEvent destinationsCreate an Event Destination POST

Create an Event Destination

POST
/v1/event-destinations

Create an Event Destination: where events are delivered, which topics it receives, and optionally which Connected Profiles.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/event-destinations" \  -H "Content-Type: application/json" \  -d '{    "type": "webhook",    "topics": [      "publish_request.*"    ],    "config": {      "url": "https://example.com/koil/events"    }  }'
{  "destinationId": "string",  "type": "string",  "topics": [    "string"  ],  "scope": {    "type": "organization"  },  "config": {    "property1": null,    "property2": null  },  "filter": {    "property1": null,    "property2": null  },  "enabled": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "validation_error",    "message": "string",    "meta": {      "property1": null,      "property2": null    }  }}