Rendez-vous
1 route
GET /appointments
Appointments of the coach with their participants. A guest appears without any identity. The coach's private notes are never served. A Google Calendar sync may move updated_at.
- Périmètre appointments:read
- 1 crédit
- Lecture
- Stable
Paramètres
| Nom | Type | Description |
|---|---|---|
limitquery | integer1–200, default 50 | |
cursorquery | string | Opaque cursor: next_cursor of the previous page. |
sincequery | date-time | ISO 8601. Returns the objects with updated_at >= since. |
include_deletedquery | booleandefault false | |
student_idquery | integer≥ 1 | |
statusquery | stringparmi : pending, confirmed, cancelled, completed | Only this status, for example cancelled. |
curl "https://api.fitdistance.io/api/partner/v1/appointments?limit=50" \
-H "Authorization: Bearer fd_live_xxxxxxxx"200 · une page de Appointment
{
"data": [
{
"id": "7c1d1e2a-9b3f-4c5d-8e6f-1a2b3c4d5e6f",
"coach_id": 4821,
"title": "string",
"description": "string",
"event_type": "appointment",
"status": "pending",
"start_at": "2026-10-24T09:12:00Z",
"end_at": "2026-10-24T09:12:00Z",
"duration_minutes": 45,
"is_all_day": true,
"color": "string",
"prestation_name": "string",
"cancelled_at": "2026-10-24T09:12:00Z",
"cancellation_reason": "string",
"participants": [
{
"student_id": 4821,
"is_guest": true,
"participation_status": "pending",
"booking_source": "app",
"registered_at": "2026-10-24T09:12:00Z",
"cancelled_at": "2026-10-24T09:12:00Z"
}
],
"created_at": "2026-10-24T09:12:00Z",
"updated_at": "2026-10-24T09:12:00Z"
}
],
"next_cursor": null,
"has_more": false
}403 · SCOPE_MISSING
{
"error": {
"name": "PARTNER_API",
"message": "SCOPE_MISSING"
}
}200 · une page de Appointment
| Nom | Type | Description |
|---|---|---|
id requis | string | |
coach_id requis | integer | |
title requis | string | null | Null when deleted. |
description requis | string | null | Null when deleted. |
event_type requis | stringparmi : appointment, meeting, reminder, task, absence, other | |
status requis | stringparmi : pending, confirmed, cancelled, completed | |
start_at requis | date-time | |
end_at requis | date-time | |
duration_minutes requis | integer | null | |
is_all_day requis | boolean | |
color requis | string | null | |
prestation_name requis | string | null | The name of the prestation booked, even a deleted one. |
cancelled_at requis | date-time | null | |
cancellation_reason requis | string | null | Null when deleted. |
participants requis | AppointmentParticipant[] | Guests and visible students, removed registrations excluded. Empty when deleted. |
created_at requis | date-time | |
updated_at requis | date-time | The latest change of the appointment or its participants, a cancellation or a deletion included. Also moves when its prestation changes (its name). |
deleted_at | date-time | null | Present when include_deleted is true. |
Erreurs
| Statut | Code | Quand |
|---|---|---|
400 | VALIDATION | Paramètres ou corps invalides.facturé |
401 | UNAUTHORIZED | Clé absente, inconnue ou révoquée.non facturé |
402 | CREDITS_EXHAUSTED | Plus de crédits ce mois-ci et aucune réserve.non facturé |
403 | SCOPE_MISSING | La clé n'a pas le périmètre demandé.non facturé |
403 | PLAN_NOT_ELIGIBLE | Ton offre n'ouvre pas l'API.non facturé |
429 | RATE_LIMITED | Trop d'appels : 10 par seconde, 300 par minute, 60 écritures et 20 suppressions par minute.non facturé |