Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Topic Ask

post/api/v1/skills/topic.ask/invoke

Ask 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

FieldTypeDescription
topic_idrequiredstringTopic permakey (preferred) or UUID
questionrequiredstringThe question to ask in the topic's conversation, from 1 to 20000 characters.
conversation_idstring | nullExisting conversation in the topic; omitted = the topic's most-recent conversation, auto-created+linked if none exists
timeout_secondsintegerSeconds to wait for the final answer before returning with status running, from 10 to 300 (default 120).

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
topic_idstringThe topic's permakey (the public id).
permakeystringThe 7-char public topic id β€” THE id to show users and reuse in later topic_* calls (UUIDs are internal).
conversation_idstringβ€”
message_idstringβ€”
query_idstringβ€”
statusstringβ€”
answerstringβ€”
metadataobjectβ€”
show nested
Empty object.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
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
     }'