document.received

Event triggered whenever a new document is uploaded to Tracore.

This event fires when a document is created via the API, either through direct upload or inline extraction.

Payload Parameters

Webhook payloads are flat camelCase objects — every field sits at the top level.

event: string

The event type that triggered the webhook (`document.received`).

runId: string

Always an empty string for this event — no extraction run exists yet.

documentId: string

Unique identifier for the document.

environmentId: string

Id of the environment the document belongs to (not the environment slug).

status: string

Always `received` for this event.

timestamp: string

ISO 8601 timestamp when the event was dispatched.

documentName: string

Display name of the document.

200 Response
{
  "event": "document.received",
  "runId": "",
  "documentId": "doc_abc123",
  "environmentId": "env_prod123",
  "status": "received",
  "timestamp": "2026-03-15T10:30:00.000Z",
  "documentName": "invoice-2026-001.pdf"
}