Skills › Topics
Link a Conversation to a Topic
POST/api/v1/skills/topic.link.conversation/invoke
Links an existing conversation to a Topic so the discussion sits with the client's work. It needs topic_id and conversation_id. A conversation belongs to at most one topic, and linking it again to the same topic changes nothing. It returns linked, which is true once the conversation is in the topic.
Body parameters
topic_idstringRequired
Topic permakey (preferred) or UUID
conversation_idstringRequired
Conversation UUID to link
Returns
Skill executed successfully
skillstringRequired
Example topic_link_conversation
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.topic_idstring · default
The topic's permakey (the public id).
output.permakeystring · default
The 7-char public topic id — THE id to show users and reuse in later topic_* calls (UUIDs are internal).
output.conversation_idstring · default
output.linkedboolean · default false
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/api/v1/skills/topic.link.conversation/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "topic_id": "string", "conversation_id": "string" }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "topic.link.conversation", topic_id="string", conversation_id="string", ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.link.conversation", {
"topic_id": "string",
"conversation_id": "string"
});
console.log(result);Response
{
"skill": "topic_link_conversation",
"output": {
"conversation_id": "7d1e4a9c-2b36-4f58-8a0d-6c3e9b5f1a27",
"linked": true,
"permakey": "K7M2QX9",
"topic_id": "K7M2QX9"
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.