POST
/
api
/
v1
/
events
Authorization
Body
curl --request POST \
  --url https://api.trigger.dev/api/v1/events \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": {
    "context": {},
    "id": "<string>",
    "name": "<string>",
    "payload": {},
    "source": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  },
  "options": {
    "accountId": "<string>",
    "deliverAfter": 123,
    "deliverAt": "2023-11-07T05:31:56Z"
  }
}'
{
  "cancelledAt": "2023-11-07T05:31:56Z",
  "context": {},
  "deliverAt": "2023-11-07T05:31:56Z",
  "deliveredAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "name": "<string>",
  "payload": {},
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
event
object
options
object

Response

200 - application/json
cancelledAt
string | null

The timestamp when the event was cancelled. Null if the event wasn't cancelled.

context
object | null

The context of the event that was sent. Null if no context was set.

deliverAt
string | null

The timestamp when the event will be delivered. Null if not applicable.

deliveredAt
string | null

The timestamp when the event was delivered. Null if not applicable.

id
string

The ID of the event that was sent.

name
string

The name of the event that was sent.

payload
object

A JSON object that represents the deserialized payload or context.

timestamp
string

The timestamp of the event that was sent.