---
title: "Get answers"
method: GET
path: "/appointments/{appointmentId}/answers"
tags: ["answers"]
---

# Get answers

`GET /appointments/{appointmentId}/answers`

Get all existing answers

## Path parameters

- `appointmentId` string, uuid, required

## Query parameters

- `mock` boolean
- `id` string[]
- `questionId` string, uuid
- `customerId` string, uuid
- `questionKey` string
- `questionType` string
- `perPage` integer
- `pageAfter` string
- `orderBy` string
- `order` 'asc' | 'desc'

## Response `200`

Return an array of data responses

- object
  - `data` AppointmentAnswerDataResponse[], required — Array of answer data response objects
    - `type` string — Type of resource
    - `id` string, uuid — ID of resource; additional resource attributes will also be returned
    - `attributes` object — Attributes of resource
      - `questionKey` string — Query for all the answers for a question
      - `questionType` string — Type of question
      - `answer` object — Answer
      - `questionSnapshot` object — Question
      - `createdAt` string, date-time — Answer creation Date
      - `updatedAt` string, date-time — Answer last updated Date
    - `relationships` AppointmentAnswerRelationships — Relationships of an answer
      - `question` object, required
        - `data` AppointmentAnswerQuestionsRelationship — Question associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID the resource
      - `appointment` object, required
        - `data` AppointmentAnswerAppointmentsRelationship — Appointments associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID of resource
      - `customer` object, required
        - `data` AppointmentAnswerCustomersRelationship — Customer associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID of resource
    - `links` Link — Link object for resource meta data
      - `self` string
  - `links` Pagination, required
    - `self` string, required — Link to current page of data response
    - `next` string — Link to next page of data response

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api.md) · [All operations](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brickworksoftware/brickwork-software-api/revisions/b06aa4f3b83c/schema)
