Talk with Archie
API reference › Topics
Skills › Topics

Post a Message

POST/api/v1/skills/topic.post.message/invoke
Posts a message into a Topic's conversation and sends it to Archie for an answer. It needs topic_id and message, and it returns at once with message_id and query_id instead of waiting. Read the answer later with topic.messages. When the topic has no conversation yet, one is created and linked for you.
Body parameters
topic_idstringRequired
Topic permakey (preferred) or UUID
messagestringRequired
The message text to post into the topic's conversation, from 1 to 20000 characters.
conversation_idstring
Existing conversation in the topic; omitted = the topic's most-recent conversation, auto-created+linked if none exists
Returns

Skill executed successfully

skillstringRequired
Example topic_post_message
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.message_idstring · default
output.query_idstring · default
output.statusstring · default submitted
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/topic.post.message/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic_id": "string",
       "message": "string",
       "conversation_id": null
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "topic.post.message",
    topic_id="string",
    message="string",
    conversation_id=None,
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.post.message", {
  "topic_id": "string",
  "message": "string",
  "conversation_id": null
});
console.log(result);
Response
{
  "skill": "topic_post_message",
  "output": {
    "conversation_id": "7d1e4a9c-2b36-4f58-8a0d-6c3e9b5f1a27",
    "message_id": "b5a3c7e1-9d24-4e68-a1f0-3c8d2e6b4a95",
    "permakey": "K7M2QX9",
    "query_id": "e2c4a6b8-1d3f-4579-8b0a-9c7e5d3f1a24",
    "status": "submitted",
    "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.