Invoke Skill Topic Ask
post
/api/v1/skills/topic.ask/invokeAsk a question in a Topic conversation and wait (bounded) for the final answer. On timeout the turn keeps running server-side and status=running is returned β poll the conversation.
Asks Archie a question in a Topic's conversation and waits for the answer. It needs topic_id and question, and it waits up to timeout_seconds, which defaults to 120. If the answer is not ready in time it returns status running with the ids to poll while the turn carries on, and topic.messages reads the answer once it is done. When it finishes in time it returns status completed with the answer.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
topic_idrequired | string | Topic permakey (preferred) or UUID |
questionrequired | string | The question to ask in the topic's conversation, from 1 to 20000 characters. |
conversation_id | string | null | Existing conversation in the topic; omitted = the topic's most-recent conversation, auto-created+linked if none exists |
timeout_seconds | integer | Seconds to wait for the final answer before returning with status running, from 10 to 300 (default 120). |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||||||||
outputrequired | object | βshow nested
| |||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/topic.ask/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"topic_id": "string",
"question": "string",
"conversation_id": null,
"timeout_seconds": 0
}'