Responses

Get response by ID

Get a response by ID.

Required scopes: read responses

get/api/v1/responses/{response_id}

Request

  • Base URL: https://api.simplesat.io
  • URL: https://api.simplesat.io/api/v1/responses/{response_id}
  • Auth: API key in header X-Simplesat-Token

Path parameters

response_idstring required

The ID of the response to retrieve

Response

Successful response

idinteger
tagsstring[]
createdstring date-time
modifiedstring date-time
ip_addressstring
languagestring
sourcestring

Example response

{
  "id": 1,
  "survey": {
    "id": 1,
    "name": "Survey name"
  },
  "tags": [],
  "created": "2024-01-01T00:00:00Z",
  "modified": "2024-01-01T00:00:00Z",
  "ip_address": "192.168.1.1",
  "ticket": {
    "id": 1,
    "external_id": "1",
    "subject": "Ticket subject",
    "custom_attributes": {
      "Priority": "Medium",
      "Category": "Support"
    }
  },
  "team_members": [
    {
      "id": 1,
      "role": "Team member",
      "is_primary": true,
      "external_id": "1",
      "name": "Tester McTestFace",
      "email": "tester@simplesat.io",
      "groups": [
        {
          "token": "iLA0X65ayqAgnnqnKSFuAwlgtiFGbt3gcN-L73SHNP0",
          "name": "Outsource BPO"
        }
      ]
    }
  ],
  "customer": {
    "id": 1,
    "external_id": "1",
    "name": "Tester McTestFace",
    "email": "tester@simplesat.io",
    "company": "Simplesat",
    "tags": [
      "tag1",
      "tag2"
    ],
    "custom_attributes": {
      "Country": "United States",
      "City": "San Francisco",
      "Channels": [
        "Web",
        "Mobile App"
      ]
    }
  },
  "answers": [
    {
      "id": 1,
      "question": {
        "id": 1,
        "text": "How did we do?",
        "metric": "csat"
      },
      "choice": "4",
      "choices": null,
      "comment": null,
      "sentiment": "positive",
      "follow_up_answer": "Great!",
      "choice_label": "Great, I'm satisfied",
      "follow_up_answer_choice": "yes",
      "follow_up_answer_choices": null,
      "follow_up_question": {
        "id": 1,
        "text": "Was there anything in particular we did that delighted you?",
        "metric": "custom"
      },
      "topics": [
        {
          "id": 1,
          "name": "Response time",
          "description": "How quickly the team responded to the request.",
          "sentiment": "positive"
        }
      ]
    }
  ],
  "source": "generic_embed",
  "language": "en"
}

Changes

No recorded changes to this operation across all 1 revision of this API.