Talk with Archie
API reference › Analysis
Skills › Analysis

Analyse Client Financials

POST/api/v1/skills/financials.analyse/invoke
Analyses a client's financials for an accountant, covering variance, trend, ratio, cashflow, profitability or working capital. You must supply client_id, and can narrow the work with a period and a comparison period. It returns a written analysis with metrics, trends, findings, citations and a confidence score.
Body parameters
client_idstring · uuidRequired
UUID of the client whose financials are analysed.
analysis_typeenum · default variance
Kind of analysis to run; defaults to a period-on-period variance review.
variancetrendratiocashflowprofitabilityworking_capital
periodstring
Period to analyse as a free-text label, for example 2026-06 or 2025-Q4.
compare_periodstring
Period to compare against, as a free-text label such as 2025-06.
Returns

Skill executed successfully

skillstringRequired
Example analyse_financials
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.analysisstring · default
output.metricsobject
output.trendsarray of values
output.findingsarray of values
output.citationsarray of values
output.confidencenumber · default 0
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/financials.analyse/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "client_id": "00000000-0000-0000-0000-000000000000",
       "analysis_type": "variance",
       "period": null,
       "compare_period": null
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "financials.analyse",
    client_id="00000000-0000-0000-0000-000000000000",
    analysis_type="variance",
    period=None,
    compare_period=None,
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("financials.analyse", {
  "client_id": "00000000-0000-0000-0000-000000000000",
  "analysis_type": "variance",
  "period": null,
  "compare_period": null
});
console.log(result);
Response
{
  "skill": "analyse_financials",
  "output": {
    "analysis": "Northwind Trading Ltd grew revenue 8.4% year on year to GBP 1,284,500 in June 2026, while operating costs rose faster than sales.",
    "citations": [
      {
        "confidence": 0.9,
        "section": "Section 5",
        "standard": "FRS 102"
      }
    ],
    "confidence": 0.86,
    "findings": [
      {
        "area": "Operating costs",
        "description": "Staff costs grew 12.1%, ahead of revenue growth.",
        "recommendation": "Review headcount plans against the forecast.",
        "severity": "medium"
      }
    ],
    "metrics": {
      "currency": "GBP",
      "prior_revenue": 1184900,
      "revenue": 1284500
    },
    "trends": [
      {
        "change_pct": 8.4,
        "direction": "up",
        "metric": "revenue"
      }
    ]
  },
  "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.