Invoke Skill Documents Analyse
post
/api/v1/skills/documents.analyse/invokeAnalyse an uploaded document β summarise, extract figures, classify, risk-assess.
Reads a document you have already uploaded and returns an analysis of it: a summary, the key figures, a classification or a risk assessment. You must supply file_id, the UUID of the uploaded file, and can choose the analysis_type. The response holds the analysis text, any extracted data and a confidence score.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
file_idrequired | string (uuid) | UUID of the uploaded file to analyse. |
analysis_type | "summarize" | "extract_figures" | "classify" | "risk_assess" | Kind of analysis to run on the document; defaults to a summary.summarizeextract_figuresclassifyrisk_assess |
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/documents.analyse/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"file_id": "00000000-0000-0000-0000-000000000000",
"analysis_type": "summarize"
}'