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.
Response Body Parameters
All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.
type string The event type that triggered the webhook (e.g., `document.received`).
created_at string ISO 8601 timestamp when the webhook event was created.
data object Event-specific data containing detailed information about the document.
200 Response
{
"type": "document.received",
"created_at": "2024-03-15T10:30:00Z",
"data": {
"document_id": "doc_abc123",
"name": "invoice-2024-001.pdf",
"mime_type": "application/pdf",
"file_size": 245832,
"workspace_slug": "my-workspace",
"schema_key": "invoice",
"environment": "production",
"created_at": "2024-03-15T10:30:00Z"
}
}