🚀 Simplify your work by integrating Haufe Copilot via API
Threads

Stream a run

Invokes the assistant on a thread and streams the response as NDJSON with a list of content blocks.

POST/v1/threads/{thread_id}/run/events/stream

Authorization

APIKeyHeader
api-key<token>

In: header

Path Parameters

thread_id*|null

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/run/events/stream" \  -H "Content-Type: application/json" \  -d '{}'
{  "created_at": "2025-03-15T09:13:02.654321Z",  "delta": {    "content_blocks": [      {        "reasoning": "The user is asking about notice periods during probation.",        "type": "reasoning"      }    ],    "role": "assistant",    "sources": []  },  "message_id": "5e6f7081-9012-def0-1234-556677889900",  "thread_id": "1a2b3c4d-5678-9abc-def0-112233445566"}