curl --request GET \
--url 'https://partners.{your-domain}/api/question/f9ad620e-305e-407e-9c37-ff2179870a3e/answers?s=2848cfc6-187c-44ec-b774-5dfef207e534&q=Ab' \
--header 'Authorization: Bearer 0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f'
[
{ "id": "1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b", "text": "Abbott, Colfax, New Mexico" },
{ "id": "2a1b3c4d-5e6f-7081-92a3-b4c5d6e7f809", "text": "Aberdeen, Monmouth, New Jersey" }
]
Qualification
Search answers
Autocomplete answers for questions with a long answer list.
GET
/
api
/
question
/
{question}
/
answers
curl --request GET \
--url 'https://partners.{your-domain}/api/question/f9ad620e-305e-407e-9c37-ff2179870a3e/answers?s=2848cfc6-187c-44ec-b774-5dfef207e534&q=Ab' \
--header 'Authorization: Bearer 0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f'
[
{ "id": "1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b", "text": "Abbott, Colfax, New Mexico" },
{ "id": "2a1b3c4d-5e6f-7081-92a3-b4c5d6e7f809", "text": "Aberdeen, Monmouth, New Jersey" }
]
Use this endpoint when the current question has
autocomplete: true. These questions (for example city or market area) have too many answers to send at once, so answers comes back empty. Call this endpoint as the user types, then submit the chosen answer’s id.
Headers
Path
Query
Text the user has typed. Matches anywhere in the answer text. If empty, the first answers alphabetically are returned.
Response
An array of at most 10 answers, sorted alphabetically.Answer hash (UUID). Send it in
answer to Submit an answer.Errors
| HTTP | When |
|---|---|
401 | Missing or unknown bearer token. |
404 | Unknown survey or question hash. |
422 | s missing or not a UUID, or question not a UUID. |
429 | Rate limit exceeded. |
curl --request GET \
--url 'https://partners.{your-domain}/api/question/f9ad620e-305e-407e-9c37-ff2179870a3e/answers?s=2848cfc6-187c-44ec-b774-5dfef207e534&q=Ab' \
--header 'Authorization: Bearer 0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f'
[
{ "id": "1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b", "text": "Abbott, Colfax, New Mexico" },
{ "id": "2a1b3c4d-5e6f-7081-92a3-b4c5d6e7f809", "text": "Aberdeen, Monmouth, New Jersey" }
]