# General Accounting Question

> 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…

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

query string Required

The accounting question to answer, in plain language, up to 10,000 characters.

context_ids array of strings

Optional UUIDs of files or records to ground the answer in; empty means none.

locale string

Optional BCP 47 language tag for the reply, such as en-GB; defaults to the caller's own.

jurisdiction string

Optional ISO 3166-1 alpha-2 country code that scopes the answer, such as GB or AU.

Returns

Skill executed successfully

skill string Required

Example ask_archie

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.answer string Required

output.citations array of values

output.confidence number · default 0

output.model_used string · default

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.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>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
