POST /v2/threads
Create a new thread. This endpoint allows you to initialize a conversation thread, optionally providing metadata or an initial log.
Request
- Base URLhttps://api.langtail.com
- Authnone declared. Required headers: X-API-Key
Headers
X-API-Keystring required
Example:<LANGTAIL_API_KEY>
Your Langtail API Key
Request body
Example request
{
"metadata": {
"user_id": "user_123",
"conversation_topic": "product_inquiry",
"priority": "high"
}
}Response
Successfully created thread
Changes
No recorded changes to this operation across all 1 revision of this API.