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

These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Event successfully sent

The response is of type object.