Skip to main content
POST
/
apps
/
events
Publish app event
curl --request POST \
  --url https://api-dev.narrative.io/apps/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    {
      "context": {
        "companyId": "<string>",
        "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "datasetId": 123,
        "profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      },
      "eventTimestamp": "2023-11-07T05:31:56Z",
      "eventType": {
        "value": "<string>"
      },
      "idempotencyKey": {
        "value": "<string>"
      },
      "payload": {
        "value": {}
      }
    }
  ]
}
'
{
  "enqueued": [
    {
      "webhookEventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "webhookSubscriptionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "idempotencyKey": "<string>",
      "eventType": "<string>",
      "companyId": "<string>"
    }
  ],
  "rejected": [
    {
      "webhookEventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "webhookSubscriptionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "idempotencyKey": "<string>",
      "eventType": "<string>",
      "companyId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
events
object[]
required

Response

200 - application/json

Created

enqueued
object[]
rejected
object[]