Visitor answers
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Whether the site's agent answers visitors' questions, and this month's answers, spend and cap. Any member reads it.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
repository_id*stringFormat
uuidRequest fulfilled, document follows
application/json- response
answered_now?integerDefault
0answers_this_month*integerasked_now?integerDefault
0assumed_no?integerDefault
0assumed_yes?integerDefault
0capped_until?string|nulldisclosed*booleanenabled*booleanhelp?|nullhosting?stringDefault
"syndai"monthly_cap_usd*numberpending_reason?string|nullsolved_no?integerDefault
0solved_yes?integerDefault
0spent_usd*numberstate*stringValue in
"off""refreshing_legal""on""capped"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"}