Get the authenticated coach profile
GET/api/public/me
Returns the authenticated coach profile (name, email, plan limits).
Authentication
Requires an API key, sent as Authorization: Bearer cp_live_....
API keys carry scopes. Get the catalog of scopes and webhook events lists every scope.
Request examples
curl --request GET \
--url 'https://api.coach-platform.com/api/public/me' \
--header 'Authorization: Bearer cp_live_...'const response = await fetch('https://api.coach-platform.com/api/public/me', {
method: 'GET',
headers: {
Authorization: 'Bearer cp_live_...',
},
});
const data = await response.json();Responses
200 OK
Successful response
{
"data": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"businessName": "<string>",
"businessType": "<string>",
"workMethod": "<string>",
"businessColor": "<string>",
"profileImageUrl": "<string>",
"activeTraineesCount": 123,
"traineesLimit": 123,
"createdAt": "<date-time>"
}
}Response fields (13)
| Name | Type | Description |
|---|---|---|
data | object | |
data.id | string | |
data.name | string | |
data.email | string | |
data.phoneNumber | string | |
data.businessName | string | |
data.businessType | string | |
data.workMethod | string | |
data.businessColor | string | |
data.profileImageUrl | string | |
data.activeTraineesCount | number | |
data.traineesLimit | number | |
data.createdAt | string<date-time> |
Error responses
400Bad Request401Unauthorized403Forbidden404Not Found409Conflict429Too Many Requests500Internal Server Error
These statuses share the same response body.
{
"error": {
"code": "<string>",
"message": "<string>",
"fix": "<string>",
"details": {},
"retryAfterMs": 123
}
}Error fields (6)
| Name | Type | Description |
|---|---|---|
error | object | |
error.code | string | |
error.message | string | |
error.fix | string | null | |
error.details | object | null | |
error.retryAfterMs | number | null |
This page is also available as Markdown. Browse it in the interactive explorer or download the OpenAPI spec.