Agent Endpoint Reference
Reference for 2 Agent endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Workspace context and tool registry for the embedded AI agent. Read-only.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
DELETE
/v1/agent/conversations/{id}Path parameters
id*string (uuid)
Query parameters
on_behalf_ofstring (uuid)Delete within the conversation partition of this workspace user.
curl
curl -X DELETE 'https://api.talonic.com/v1/agent/conversations/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/agent/conversations/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — The conversation was deleted.
{
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
"deleted": true
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
PATCH
/v1/agent/conversations/{id}Path parameters
id*string (uuid)
Query parameters
on_behalf_ofstring (uuid)Rename within the conversation partition of this workspace user.
Request body (application/json)
title*string
curl
curl -X PATCH 'https://api.talonic.com/v1/agent/conversations/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Q3 collections review"
}'Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/agent/conversations/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"title": "Q3 collections review"
}),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — The conversation's new title.
{
"conversation_id": "8c4f2a1e-0b6d-4e2f-9a3c-5d7e1f2a3b4c",
"title": "Q3 collections review"
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.