v1

latestOpenAPI 3.1.02026-07-26620219.6 KB

Retrieve All Questions

Returns all Q&A questions and their answers for the account_id specified.

get/v2/{account_id}/questions?access_token=access_token

Path parameters

account_idstring required

Your account's API app key

Query parameters

access_tokenstring required

Your Yotpo access token. Click here to learn how to generate one

pageinteger

The page to return in your paginated response.

countinteger

The number of question to return per page.

Response

200

Example response

{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "pagination": {
    "page": 1,
    "count": 10,
    "total": 2
  },
  "questions": {
    "questions": [
      {
        "id": "3",
        "content": "how long are the sleeves?",
        "asker": {
          "id": "10149",
          "display_name": "Gregory",
          "social_image": "https://ddcfq0gxiontw.cloudfront.net/images/anonymous_user.png",
          "email": "questionemail@yotpo.com"
        },
        "user_type": "User",
        "created_at": "2018-10-24T06:34:13Z",
        "published": true,
        "answers": [
          {
            "id": "4",
            "content": "how short are your arms?",
            "public": true,
            "store_owner_comment": true,
            "answerer": {
              "id": "8315"
            },
            "created_at": "2018-10-24T08:33:37Z"
          }
        ],
        "product": {
          "name": "Long Sleeves Shirt",
          "external_product_id": "761060802",
          "product_url": "https://tom-yotpo.myshopify.com/collections/frontpage/products/first-product"
        }
      }
    ]
  }
}