# Phase 3B -- Schedule API + Hooks

> **Parent:** `2026-04-15-phase-3-schedule-master.md`
> **Depends on:** 3A (types)

## Deliverables

1. `src/features/schedule/api.ts` -- three API functions
2. `src/features/schedule/api.test.ts` -- unit tests
3. `src/features/schedule/hooks/useScheduleSearch.ts`
4. `src/features/schedule/hooks/useScheduleDetails.ts`
5. `src/features/schedule/hooks/useScheduleCalendar.ts`

## API Endpoints

- `POST schedule/1` -- search (body: IScheduleSearchRequest)
- `GET schedule/details` -- multi-flight details (query: flights[], dates[], departure, arrival)
- `GET days/{date}/382/{param}/schedule/v1` -- calendar days
