/api/v1/assistant/threads/{id}/turns
POST
/api/v1/assistant/threads/{id}/turns
const url = 'https://example.com/api/v1/assistant/threads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/turns';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"example","context":{"kind":"location","id":"example"},"locale":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/assistant/threads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/turns \ --header 'Content-Type: application/json' \ --data '{ "text": "example", "context": { "kind": "location", "id": "example" }, "locale": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
text
required
string
context
object
kind
required
string
id
string
locale
required
string
Responses
Section titled “Responses”Default Response