Retrieve Q&A by Question ID

Changed on

Retrieve a specific Q&A question and its answers by question_id.

get/v2/{account_id}/questions/{question_id}

Request

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

Path parameters

account_idstring required

Your account's API app key

question_idstring required

The question's unique identifier. Can be retrieved using Retrieve All Questions

Response

200

paginationunknown

Example response

{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "question": {
    "id": "3",
    "content": "how long are the sleeves?",
    "asker": {
      "id": "10111",
      "display_name": "Gregory",
      "social_image": "https://ddcfq0gxiontw.cloudfront.net/images/anonymous_user.png",
      "email": "questionemail@example.com"
    },
    "user_type": "User",
    "created_at": "2018-10-23T07:10:41Z",
    "published": true,
    "answers": [
      {
        "id": "4",
        "content": "long.very very long",
        "public": true,
        "store_owner_comment": true,
        "answerer": {
          "id": "8315"
        },
        "created_at": "2018-10-23T07:11:32Z"
      }
    ],
    "product": {
      "name": "Long Sleeves Shirt",
      "external_product_id": "761060802",
      "product_url": "https://tom-yotpo.myshopify.com/collections/frontpage/products/first-product"
    }
  }
}

Changes