Start a conversation with the assistant
post/agents/assistant/threads
Start a conversation with the assistant: a titled thread for a goal, kept as a record.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
agents:write- Sdk
agents.assistant.threadCreate- Cli
agents assistant thread create
Request bodyapplication/json, required
- titlestringAt most 120 characters.
- goalstringAt most 300 characters.
- surfacestringWhich screen the conversation belongs to; default ask One of: ask, advisor.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring