List questions
Shopper questions by status, with product, asker and any answer.
GET https://cotlet.dev/api/v1/okendo/questions
read
Lists questions as Reviews > Questions > Moderation shows them for the status you pick. Each question has its product, who asked with name and email, the question text and your answer if there is one. Pass next_cursor back as cursor for the next page. Needs the Q&A widget on your store, or there are no questions to list.
Parameters
| Name | Type | Description |
|---|---|---|
| status enum | enum | pending, published or rejected. Default: pending. |
| product string | string | Only questions about this product. |
| limit integer | integer | How many questions to return per page. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/okendo/questions \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("okendo", "list_questions") const result = await cotlet.call('okendo', 'list_questions'); cotlet call okendo list_questions Example response
{
"questions": [
{
"question_id": "qst_31b8",
"product": "Canvas Tote",
"asked_by": "Priya Nair",
"email": "priya@example.com",
"question": "Is the tote machine washable?",
"status": "pending",
"answer": null
}
],
"next_cursor": null
}