> ## Documentation Index
> Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Availability

> Check availability for a specific service, agent, date, and duration.

## Required Parameters

| Parameter    | Type    | Required | Description                                                                                                                |
| ------------ | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------- |
| `service_id` | integer | Yes      | Service ID                                                                                                                 |
| `agent_id`   | integer | Yes      | Agent ID                                                                                                                   |
| `date`       | string  | Yes      | Date (YYYY-MM-DD)                                                                                                          |
| `duration`   | integer | No       | Service duration in minutes. If not provided, uses the service default duration. Must be a valid duration for the service. |

## Example Request

```bash theme={null}
# Basic request using service default duration
GET /wp-json/latepoint-api/v1/availability?service_id=1&agent_id=1&date=2024-01-15

# Request with specific duration
GET /wp-json/latepoint-api/v1/availability?service_id=1&agent_id=1&date=2024-01-15&duration=60
```

## Additional Examples

```bash theme={null}
# Check availability for a 90-minute service
GET /wp-json/latepoint-api/v1/availability?service_id=1&agent_id=1&date=2024-01-15&duration=90

# Check availability for a 30-minute service
GET /wp-json/latepoint-api/v1/availability?service_id=1&agent_id=1&date=2024-01-15&duration=30
```
