> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/queries/appointments/coach-availability.md).

# Coach Availability

Use the `coachAvailability` query to retrieve a list of available time slots for scheduling a meeting with a coach (or multiple coaches), based on the specified appointment type.

### Arguments

| Argument          | Type      | Description                                                |
| ----------------- | --------- | ---------------------------------------------------------- |
| `appointmentType` | ID!       | ID of the appointment type.                                |
| `start`           | DateTime! | Set start date to retrieve results. `YYYY-MM-DDT hh:mm:ss` |
| `end`             | DateTime! | Set end date to retrieve results. `YYYY-MM-DDT hh:mm:ss`   |
| `coaches`         | \[ID]     | ID of the coach or coaches.                                |

### Available Fields

<table data-header-hidden><thead><tr><th width="236.33333333333331">Field</th><th width="203">Type</th><th>Description</th></tr></thead><tbody><tr><td>Field</td><td>Type</td><td>Description</td></tr><tr><td><code>start</code></td><td>DateTime!</td><td><em>Start</em> date and time of the available block <code>YYYY-MM-DDT hh:mm:ss</code></td></tr><tr><td><code>end</code></td><td>DateTime!</td><td><em>End</em> date and time of the available block<code>YYYY-MM-DDT hh:mm:ss</code></td></tr><tr><td><code>coaches</code></td><td>[Coach]</td><td>Coaching portal <a href="/pages/x05NBz0o8gp8FTjuxzy8">Coach</a>.</td></tr></tbody></table>

## Example

{% tabs %}
{% tab title="Request" %}

```graphql
query{
  coachAvailability(
    appointmentType:"QXBwb2ludG11brRUeXBlOjEwNTc="
    start:"2025-09-18"
    end:"2025-10-15"
  ){
    start
    end
    coaches{
      name
      email
      id
    }
}
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "coachAvailability": [
      {
        "start": "2025-10-09T22:00:00+00:00",
        "end": "2025-10-09T22:30:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-09T22:30:00+00:00",
        "end": "2025-10-09T23:00:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T15:00:00+00:00",
        "end": "2025-10-11T15:30:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T15:30:00+00:00",
        "end": "2025-10-11T16:00:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T16:00:00+00:00",
        "end": "2025-10-11T16:30:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T16:30:00+00:00",
        "end": "2025-10-11T17:00:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T17:00:00+00:00",
        "end": "2025-10-11T17:30:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T17:30:00+00:00",
        "end": "2025-10-11T18:00:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T18:00:00+00:00",
        "end": "2025-10-11T18:30:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-11T18:30:00+00:00",
        "end": "2025-10-11T19:00:00+00:00",
        "coaches": [
          {
            "name": "Alex Morgan",
            "email": "alex.morgan@example.com",
            "id": "Q29hY2g6MDAwMDE="
          }
        ]
      },
      {
        "start": "2025-10-14T15:30:00+00:00",
        "end": "2025-10-14T16:00:00+00:00",
        "coaches": [
          {
            "name": "Taylor Brooks",
            "email": "taylor.brooks@example.com",
            "id": "Q29hY2g6MDAwMDI="
          }
        ]
      },
      {
        "start": "2025-10-14T16:30:00+00:00",
        "end": "2025-10-14T17:00:00+00:00",
        "coaches": [
          {
            "name": "Taylor Brooks",
            "email": "taylor.brooks@example.com",
            "id": "Q29hY2g6MDAwMDI="
          }
        ]
      },
      {
        "start": "2025-10-14T18:00:00+00:00",
        "end": "2025-10-14T18:30:00+00:00",
        "coaches": [
          {
            "name": "Taylor Brooks",
            "email": "taylor.brooks@example.com",
            "id": "Q29hY2g6MDAwMDI="
          }
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.suggestic.com/graphql/query/queries/appointments/coach-availability.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
