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>"
}
]
}Create a new webhook subscription for the authenticated company.
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>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes