Skills › General
General Accounting Question
POST/api/v1/skills/messages.create/invoke
Answers a general accounting question when no more specific skill fits. Supply the query, and optionally context_ids for files or records to draw on, a locale and a jurisdiction. It returns the answer, the citations behind it, a confidence score and the name of the model used.
Body parameters
querystringRequired
The accounting question to answer, in plain language, up to 10,000 characters.
context_idsarray of strings
Optional UUIDs of files or records to ground the answer in; empty means none.
localestring
Optional BCP 47 language tag for the reply, such as en-GB; defaults to the caller's own.
jurisdictionstring
Optional ISO 3166-1 alpha-2 country code that scopes the answer, such as GB or AU.
Returns
Skill executed successfully
skillstringRequired
Example ask_archie
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.answerstringRequired
output.citationsarray of values
output.confidencenumber · default 0
output.model_usedstring · default
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/messages.create/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "query": "string", "context_ids": [ "00000000-0000-0000-0000-000000000000" ], "locale": null, "jurisdiction": null }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "messages.create", query="string", context_ids=["00000000-0000-0000-0000-000000000000"], locale=None, jurisdiction=None, ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("messages.create", {
"query": "string",
"context_ids": [
"00000000-0000-0000-0000-000000000000"
],
"locale": null,
"jurisdiction": null
});
console.log(result);Response
{
"skill": "ask_archie",
"output": {
"answer": "A private company must file its annual accounts within nine months of its financial year end.",
"citations": [
{
"confidence": 0.92,
"section": "Section 442",
"standard": "Companies Act 2006",
"url": ""
}
],
"confidence": 0.9,
"model_used": "claude-sonnet-4-5",
"stub_fields": [],
"warnings": []
},
"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.