younifyd
Menu

Retrieve All Questions

Retrieve all questions

GET/apps/{app_key}/questions.json

Use it in a workflow

  1. Add a step and choose the Yotpo connector.
  2. Pick the Retrieve All Questions action (under Reviews & Ratings).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveAllQuestions.response.data}}.

Request

Path parameters

app_keystringrequired

The store ID

Query parameters

utokenstringrequired

Your Yotpo account access token. See [Yotpo Authentication](https://apidocs.yotpo.com/reference#yotpo-authentication) to learn how to generate your utoken.

status_typestring

Filter for new questions by adding `status_type=new`

Request body

Enter the body as JSON in the step's Body field.

total_questionsstring

The total number of questions

new_questionsstring

Refers to questions that are unanswered and have not been archived.

idstring

Your question ID. Use this param in [Create an Answer to a Question](ref:draft-create-answer-for-question)

contentstring

The content of the question.

json
{
  "total_questions": "string",
  "new_questions": "string",
  "id": "string",
  "content": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{retrieveAllQuestions.response.data.<field>}}.

statusobject
codeinteger

Default 0

messagestring
responseobject
total_questionsinteger

Default 0

new_questionsinteger

Default 0

questionsarray<object>10 fields
pagestring
per_pagestring
json
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "response": {
    "total_questions": 962,
    "new_questions": 227,
    "questions": [
      {
        "id": 200675,
        "content": "Is it water resistant?",
        "asker": {
          "id": 5110289,
          "display_name": "Ally",
          "slug": "ally--108",
          "social_image": "https://ddcfq0ogxintw.cloudfront.net/images/anonymous_user.png",
          "is_social_connected": false,
          "bio": null,
          "score": 0,
          "badges": [
            null
          ]
        },
        "user_type": "User",
        "created_at": "2015-12-30T19:53:14.000Z",
        "archived": false,
        "published": true,
        "allow_send": false,
        "answers": [
          {
            "id": 496685,
            "approved": true,
            "public": true,
            "content": "Yes, the watch is water resistant",
            "is_store_owner_comment?": true,
            "answerer": {
              "id": null,
              "display_name": null,
              "slug": null,
              "social_image": null,
              "is_social_connected": null,
              "bio": null,
              "score": null,
              "badges": null
            },
            "votes_up": 1,
            "votes_down": 0,
            "created_at": "2016-02-23T21:45:13.000Z"
          }
        ],
        "products_app": {
          "product": {
            "name": "Sports Watch - Great for an active lifestyle",
            "images": [
              null
            ]
          },
          "product_url": "http://www.watchstore.com/products/Sports Watch - Great for an active lifestyle"
        }
      }
    ],
    "page": "1",
    "per_page": "1"
  }
}

Need more? See the Yotpo guide for connection setup and behaviour shared by every action.