Syndai Docs

Visitor answers

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/repos/{repository_id}/visitor-answers

Whether the site's agent answers visitors' questions, and this month's answers, spend and cap. Any member reads it.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

repository_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
answered_now?integer
Default0
answers_this_month*integer
asked_now?integer
Default0
assumed_no?integer
Default0
assumed_yes?integer
Default0
capped_until?string|null
disclosed*boolean
enabled*boolean
help?|null
hosting?string
Default"syndai"
monthly_cap_usd*number
pending_reason?string|null
solved_no?integer
Default0
solved_yes?integer
Default0
spent_usd*number
state*string
Value in"off""refreshing_legal""on""capped"
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/visitor-answers'
Example Response
{  "answered_now": 0,  "answers_this_month": 0,  "asked_now": 0,  "assumed_no": 0,  "assumed_yes": 0,  "capped_until": "string",  "disclosed": true,  "enabled": true,  "help": {    "edited_at": "string",    "found": [      {        "answer": "string",        "found_at": "string",        "question": "string",        "sha": "string",        "sources": [          "string"        ],        "waiting": 0      }    ],    "found_auto": true,    "gaps": [      {        "after_fix": false,        "asks": 0,        "fix": "string",        "key": "string",        "langs": [          "string"        ],        "question": "string",        "task": "string",        "threads": 0      }    ],    "generated_at": "string",    "page_help": [      {        "last_seen": "string",        "sha": "string",        "text": "string"      }    ],    "questions_disclosed": true,    "setup": "string",    "stopped": [      {        "key": "string",        "question": "string"      }    ],    "text": "string"  },  "hosting": "syndai",  "monthly_cap_usd": 0,  "pending_reason": "string",  "solved_no": 0,  "solved_yes": 0,  "spent_usd": 0,  "state": "off"}
Was this page helpful?