Events

Send event

Sends one event for testing and debugging. The request accepts the name, data, user, id, and ts fields; send batches and other Event API fields through an Inngest SDK or the Event API. This endpoint uses REST API rate limits and is not intended for high-volume ingestion. Use the returned event ID with the event runs endpoint to inspect any function runs triggered by the event.

post/events

Request

  • Base URL: https://api.inngest.com/v2
  • URL: https://api.inngest.com/v2/events
  • Auth: API key in header Authorization

Request body

dataobject

JSON object containing event data

idstring

Optional event ID used for idempotency when scheduling function runs

namestring required

Event name

tsstring int64

Optional event timestamp as Unix time in milliseconds. Defaults to the current time.

userobject

Deprecated user data. Put user data in the data field instead.

Example request

{
  "data": {
    "userId": "01H08WQHKQ9H8S7F7NQGQ0M1NZ"
  },
  "id": "user-created-01H08WQHKQ9H8S7F7NQGQ0M1NZ",
  "name": "app/user.created",
  "user": {
    "email": "ada@example.com",
    "id": "01H08WQHKQ9H8S7F7NQGQ0M1NZ"
  }
}

Response

Event accepted

Example response

{
  "data": {
    "eventId": "01K1QQ3VQ8R3M8QX4D51J8G7XH"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.