# Clarification on Retrieving All Bookings via API with BoundaryId

**URL:** <https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951>\
**Category:** API\
**Created:** [August 8, 2024, 12:50pm UTC](https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951 "2024-08-08T12:50:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJabdelilah](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@MJabdelilah](https://forum.youcanbook.me/u/MJabdelilah)\
**Post date:** [August 8, 2024, 12:50pm UTC](https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951/1 "2024-08-08T12:50:32Z")

</div>

I’m trying to retrieve all bookings using the YouCanBookMe API, but I’m only getting 12 bookings per request. The documentation mentions using `boundaryId` for pagination, but it’s unclear where to find this `boundaryId` as it’s not included in the response. Can anyone provide a detailed explanation or example on how to use `boundaryId` for retrieving all bookings? Documentation link: [YouCanBookMe API Documentation](https://ycbm.stoplight.io/docs/youcanbookme-api/iean2cxqld7vo-retrieving-bookings).

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [August 8, 2024, 12:59pm UTC](https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951/2 "2024-08-08T12:59:33Z")

</div>

@MJabdelilah when you run a request to the bookings endpoint in the header that is returned there is a link to either move forward or backward in time. This will automatically have the boundryId included in the next search to paginate.

It will have a prev (backward in time) and next (forward in time):

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/ycbm/original/2X/d/dcb91a707df04ee685f5e1a0a2bdbebbb529792f.png)

---

<div class="post-metadata">

**Author:** ![MJabdelilah](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@MJabdelilah](https://forum.youcanbook.me/u/MJabdelilah)\
**Post date:** [August 8, 2024, 2:44pm UTC](https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951/3 "2024-08-08T14:44:35Z")

</div>

Thank you, @Ben. It’s much clearer now. I have another question: I’m trying to get the email as part of the response, but it doesn’t seem to be returned. Do you know why this might be?

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [August 8, 2024, 2:50pm UTC](https://forum.youcanbook.me/t/clarification-on-retrieving-all-bookings-via-api-with-boundaryid/2951/4 "2024-08-08T14:50:17Z")

</div>

Add to your request ?fields=answers,answers.code,answers.string this should allow you to get form field responses. You can include additional fields as well like createdAt, id, etc.
