cURL
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" }
Send an event to Trigger.dev to trigger job runs through eventTrigger()
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Event successfully sent
The response is of type object.
object
Was this page helpful?