Skip to content

AI Analyses ​

Retrieve stored analysis records in your authorized account context. These read routes do not start an AI run. Creating an analysis is currently unavailable; see the write-route notice below.

Endpoints ​

MethodPathCurrent behavior
GET/ai/analysesList stored analyses
GET/ai/analyses/:idRetrieve one stored analysis
POST/ai/analysesCurrently rejects request bodies

Use an interactive JWT and an account authorized for the operation. An authentication or entitlement failure is distinct from a malformed request.

GET /ai/analyses ​

Returns analyses created by you, plus shared records available in the account context. The list is limited to the most recent 500 records; this endpoint does not accept pagination or type filters.

Request ​

No JSON body or query parameters.

Response ​

Response Example ​
json
{
  "data": []
}
Response Fields ​

Each returned record contains id, analysisType, targetType, findings, recommendations, scores, and generatedAt. The structured fields findings, recommendations, and scores are an object, an array, and an object respectively. A record does not include a status, result, or createdAt field.

Code Examples ​

curl "https://api.chainabit.com/api/v1/ai/analyses" \
  -H "Authorization: Bearer $TOKEN"

GET /ai/analyses/:id ​

Retrieve one record using its returned id.

Request ​

Set ANALYSIS_ID to an ID from the list response.

Response ​

Response Example ​
json
{
  "data": null
}

This is the response when no matching record is visible to the caller. A successful lookup returns the record shape described above.

Response Fields ​

data is an analysis record or null; do not assume a missing record produces 404.

Code Examples ​

curl "https://api.chainabit.com/api/v1/ai/analyses/$ANALYSIS_ID" \
  -H "Authorization: Bearer $TOKEN"

POST /ai/analyses ​

Current availability

Requests to this write route are currently rejected with 400 Bad Request, even when an authenticated caller supplies an otherwise plausible body. There is no verified successful request example for the current release.

Do not build an integration around earlier examples for this route. Retrying the same body, changing its field casing, or weakening client-side validation does not resolve this limitation. Use the supported read routes below while write support is corrected.

Earlier documentation described type and dateRange as inputs that would generate an analysis. That is not a supported workflow. Use AI Sessions when you need to send a message to an AI assistant; do not use this route to request model inference.

Chao Analysis Types ​

Analysis records may originate from different workflows. Treat analysisType and the structured findings as record data, not as a documented menu of algorithms that this endpoint can run. This API does not guarantee the earlier health-score, timing, continuity, or recovery result schemas.

Built with purpose. chainabit.com