Syndai Docs

Price an Ask AI check

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

Prices an Ask AI about my business check without starting one: up to 5 questions drafted from the business brief (no model call) and the price billed from credits in USD: max_usd for those questions, base_usd plus per_question_usd to re-price an edited list, headroom_usd (credits spendable now) and runs_left today (3 checks a site a UTC day). Spends nothing; needs coding:apps:read.

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
base_usd*number
drafted*array<string>
headroom_usd*number
max_questions*integer
max_usd*number
per_question_usd*number
questions*array<string>
runs_left*integer
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/estimate'
Example Response
{  "base_usd": 0,  "drafted": [    "string"  ],  "headroom_usd": 0,  "max_questions": 0,  "max_usd": 0,  "per_question_usd": 0,  "questions": [    "string"  ],  "runs_left": 0}