🚀 Simplify your work by integrating Haufe CoPilot Connect via API or MCP
Skip to Content
Threads

Create a thread

Creates a new conversation thread for stateful dialogues between an end user and an assistant.

POST/v1/threads

Authorization

api-key<token>

In: header

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/threads" \  -H "Content-Type: application/json" \  -d '{    "assistant_id": "a1b2c3d4-5678-9abc-def0-1234567890ab",    "title": "Fragen zur Elternzeit",    "user_id": "f8e7d6c5-4321-fedc-ba98-765432109876"  }'
{  "assistant_id": "a1b2c3d4-5678-9abc-def0-1234567890ab",  "created_at": "2025-03-15T09:12:33.456789Z",  "id": "1a2b3c4d-5678-9abc-def0-112233445566",  "last_updated_at": "2025-03-15T09:45:12.123456Z",  "scope": "HAI",  "space_ids": [    "f0c7d1b2-8a5e-4c31-9d10-2f5e6a0b7c88"  ],  "tenant_id": "abcd1234-ef56-7890-abcd-ef1234567890",  "title": "Kündigung während der Probezeit",  "user_id": "f8e7d6c5-4321-fedc-ba98-765432109876",  "user_tenant_id": "customer-4711"}