Skills › Topics
Read a Topic Conversation's Messages
POST/api/v1/skills/topic.messages/invoke
Reads the messages in a Topic's conversation, oldest first, so you can follow a discussion or collect the answer to a question you posted. It needs topic_id and returns each message with its role, content and citations, plus a total, paged with limit and offset. It never creates a conversation.
Body parameters
topic_idstringRequired
Topic permakey (preferred) or UUID
conversation_idstring
Conversation in the topic to read; omitted = the topic's most-recent conversation (the reader never creates one)
limitinteger · default 20
Maximum number of messages to return, from 1 to 100 (default 20).
offsetinteger · default 0
Number of messages to skip before the first one returned, for paging.
Returns
Skill executed successfully
skillstringRequired
Example topic_messages
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.messagesarray of values
output.totalinteger · default 0
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.messages/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "topic_id": "string", "conversation_id": null, "limit": 0, "offset": 0 }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "topic.messages", topic_id="string", conversation_id=None, limit=0, offset=0, ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.messages", {
"topic_id": "string",
"conversation_id": null,
"limit": 0,
"offset": 0
});
console.log(result);Response
{
"skill": "topic_messages",
"output": {
"conversation_id": "7d1e4a9c-2b36-4f58-8a0d-6c3e9b5f1a27",
"messages": [
{
"content": "When is corporation tax due for Northwind Trading Ltd's year ended 31 December 2026?",
"created_at": "2026-10-12T09:44:10Z",
"message_id": "b5a3c7e1-9d24-4e68-a1f0-3c8d2e6b4a95",
"query_id": "e2c4a6b8-1d3f-4579-8b0a-9c7e5d3f1a24",
"role": "user"
},
{
"content": "Corporation tax for the year ended 31 December 2026 is payable by 1 October 2027, and the return is due by 31 December 2027.",
"created_at": "2026-10-12T09:44:31Z",
"message_id": "c6b4d8f2-0e35-4f79-b2a1-4d9e3f7c5b06",
"query_id": "e2c4a6b8-1d3f-4579-8b0a-9c7e5d3f1a24",
"role": "assistant"
}
],
"permakey": "K7M2QX9",
"topic_id": "K7M2QX9",
"total": 2
},
"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.