List subjects
curl --request GET \
--url https://partner-api.ochy-prod.com/subjects \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/subjects"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/subjects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subjects": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "runner@example.com",
"name": "Jane Smith",
"height": 1.72,
"weight": 62,
"created_at": "2025-03-20T15:30:00Z"
}
],
"count": 1
}{
"detail": "API Key is missing"
}{
"detail": "API Key is missing"
}{
"detail": "Internal server error",
"code": "insufficient_api_credits"
}Subjects
List subjects
Retrieve all subjects belonging to the authenticated partner. Soft-deleted subjects are excluded.
GET
/
subjects
List subjects
curl --request GET \
--url https://partner-api.ochy-prod.com/subjects \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/subjects"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/subjects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subjects": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "runner@example.com",
"name": "Jane Smith",
"height": 1.72,
"weight": 62,
"created_at": "2025-03-20T15:30:00Z"
}
],
"count": 1
}{
"detail": "API Key is missing"
}{
"detail": "API Key is missing"
}{
"detail": "Internal server error",
"code": "insufficient_api_credits"
}