OpenCourt Developers
API ReferenceCoaches

Get a coach

GET/v1/coaches/{id}

Fetch a single coach by id. Archived coaches are still returned (a stored link should not break on archive). Returns 404 only if the id is not a coach of the club tied to your API key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your club API key. Send it as Authorization: Bearer oc_live_….

In: header

Path Parameters

id*string

The coach id.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.getopencourt.com/v1/coaches/c1a2b3d4-5e6f-4708-9192-a3b4c5d6e7f8"
{
  "id": "c1a2b3d4-5e6f-4708-9192-a3b4c5d6e7f8",
  "object": "coach",
  "name": "Marcus",
  "last_name": "Rivera",
  "title": "Head Pro",
  "bio": "PPR-certified coach specializing in beginner clinics and dink strategy.",
  "avatar_url": "https://sup.opencourt.co/coaches/marcus.jpg",
  "slug": "marcus-rivera",
  "lesson_booking_enabled": true,
  "status": "active"
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "request_id": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "request_id": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "request_id": "string"
  }
}