cURL
curl -X POST \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{"title":"Check-in","notes":"Follow up next week."}' \
https://api.fitsociety.io/public/v1/clients/<clientId>/notesconst options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Check-in',
notes: 'Follow up next week.',
visibleToClient: false,
pinned: false,
tags: ['follow-up'],
mentions: [{id: '<string>', name: '<string>'}],
attachments: [{documentId: '<string>', name: '<string>', size: 123, type: '<string>'}]
})
};
fetch('https://api.fitsociety.io/public/v1/clients/{clientId}/notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/clients/{clientId}/notes"
payload = {
"title": "Check-in",
"notes": "Follow up next week.",
"visibleToClient": False,
"pinned": False,
"tags": ["follow-up"],
"mentions": [
{
"id": "<string>",
"name": "<string>"
}
],
"attachments": [
{
"documentId": "<string>",
"name": "<string>",
"size": 123,
"type": "<string>"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"note": {
"noteId": "66f7b8b1e13c8d25f4d3d92a",
"title": "Check-in",
"notes": "Follow up next week.",
"date": "2023-11-07T05:31:56Z",
"editedAt": "2023-11-07T05:31:56Z",
"pinned": false,
"visibleToClient": false,
"tags": [
"<string>"
],
"mentions": [
{
"id": "coach-1",
"name": "Coach One"
}
],
"attachments": [
{
"documentId": "66f7b8b1e13c8d25f4d3d93a",
"name": "intake.pdf",
"size": 1200,
"type": "application/pdf"
}
],
"coach": {
"coachId": "66f7b8b1e13c8d25f4d3d90a",
"name": "John Doe"
}
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}Client notes
Create a client note
POST
/
public
/
v1
/
clients
/
{clientId}
/
notes
cURL
curl -X POST \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{"title":"Check-in","notes":"Follow up next week."}' \
https://api.fitsociety.io/public/v1/clients/<clientId>/notesconst options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Check-in',
notes: 'Follow up next week.',
visibleToClient: false,
pinned: false,
tags: ['follow-up'],
mentions: [{id: '<string>', name: '<string>'}],
attachments: [{documentId: '<string>', name: '<string>', size: 123, type: '<string>'}]
})
};
fetch('https://api.fitsociety.io/public/v1/clients/{clientId}/notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/clients/{clientId}/notes"
payload = {
"title": "Check-in",
"notes": "Follow up next week.",
"visibleToClient": False,
"pinned": False,
"tags": ["follow-up"],
"mentions": [
{
"id": "<string>",
"name": "<string>"
}
],
"attachments": [
{
"documentId": "<string>",
"name": "<string>",
"size": 123,
"type": "<string>"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"note": {
"noteId": "66f7b8b1e13c8d25f4d3d92a",
"title": "Check-in",
"notes": "Follow up next week.",
"date": "2023-11-07T05:31:56Z",
"editedAt": "2023-11-07T05:31:56Z",
"pinned": false,
"visibleToClient": false,
"tags": [
"<string>"
],
"mentions": [
{
"id": "coach-1",
"name": "Coach One"
}
],
"attachments": [
{
"documentId": "66f7b8b1e13c8d25f4d3d93a",
"name": "intake.pdf",
"size": 1200,
"type": "application/pdf"
}
],
"coach": {
"coachId": "66f7b8b1e13c8d25f4d3d90a",
"name": "John Doe"
}
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_....
Headers
Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.
Required string length:
1 - 200Example:
"booking-create-20260714-001"
Path Parameters
Body
application/json
⌘I