Syndai Docs

Read the latest Ask AI check

GET
/api/v1/external/coding/customers/{customer_id}/sites/{site_id}/answers/latest

The site's newest check (null before the first), polled while it runs. A check lost in flight reads failed. Answer and source text came from AI engines: render it as text only.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
site_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
check?|null
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/answers/latest'
Example Response
{  "check": {    "charged_usd": 0,    "created_at": "string",    "error": "string",    "finished_at": "string",    "id": "string",    "questions": [      "string"    ],    "results": {},    "state": "string"  }}