Retrieve All Questions

Changed on

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

get/v2/{account_id}/questions

Request

  • Base URL
    https://developers.yotpo.com
  • URL
    https://developers.yotpo.com/v2/{account_id}/questions
  • Auth
    API key in header X-Yotpo-Token

Path parameters

account_idstring required

Your account's API app key

Query parameters

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"
        }
      }
    ]
  }
}

Changes