---
title: "Get all messages of a reservation enquiry"
method: GET
path: "/v1/reservation-enquiries/{reservationEnquiryId}/messages"
tags: ["reservation-enquiries"]
---

# Get all messages of a reservation enquiry

`GET /v1/reservation-enquiries/{reservationEnquiryId}/messages`

## Request

- Base URL: `https://public-api.prod.quandoo.com`
- URL: `https://public-api.prod.quandoo.com/v1/reservation-enquiries/{reservationEnquiryId}/messages`
- Auth: API key in header `X-Quandoo-AuthToken`
- TypeScript: <https://skmtc.dev/quandoo/apis/quandooapidocumentation/docs/v1/reservation-enquiries/:reservationEnquiryId/messages/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows an agent to get all messages of a reservation enquiry. The id of the reservation enquiry is agent-specific. The agent needs to be authenticated.

The endpoint will return `HTTP 404 - Not Found` if the reservation enquiry with the specified id could not be found.

It will return `HTTP 403 - Forbidden` if the agent is not authenticated, if the agent doesn't have permissions or the reservation enquiry doesn't belong to the authenticated agent.

####Request:
* **reservationEnquiryId**: Agent-specific ID of the requested reservation enquiry

####Response:
The response will contain a _list_ of messages. Each one containing the following fields:
* **senderType**: If this message was sent by the customer or by the merchant 
* **creationDate**: The date time that this message was created. Format: yyyy-MM-ddTHH:mm:ssZ
* **message**: The text of the message itself.

Example curl:
```
curl https://{host}/v{X}/reservation-enquiries/07f53b36-3f48-11e5-a151-feff819cdc9f/messages
```

Example response:
```
{
  "messages": [
    {
      "senderType": "CUSTOMER",
      "message": "Customer specific message",
      "creationDate": "2018-05-04T09:26:53Z"
    }
  ]
}
```

## Path parameters

- `reservationEnquiryId` string, required

## Response `200`

OK

- ReservationEnquiryMessageList
  - `messages` ReservationEnquiryMessageData[]
    - `senderType` 'MERCHANT' | 'CUSTOMER'
    - `message` string
    - `creationDate` string, date-time: The date the review created on. Format: yyyy-MM-ddTHH:mm:ssZ

## Other responses

- `400`: Bad request
- `403`: Access denied
- `404`: Reservation enquiry not found
- `500`: Internal server error

---

[API](https://skmtc.dev/quandoo/apis/quandooapidocumentation.md) - [All operations](https://skmtc.dev/quandoo/apis/quandooapidocumentation/llms.txt) - [OpenAPI document](https://skmtc.dev/quandoo/apis/quandooapidocumentation/revisions/b33054d03af3?raw)
