POST /api/pro/work/:id/text
Help with one field's text, the professional's own words kept: `tidy` fixes dictation slips, spelling and grammar and keeps the language; `translate` puts it into English, the plan's language. Markdown in, markdown out; nothing is kept here. Refused with 503 where the assistant is not set up.
Surface: professional. Who may call: professional. Key: professional.work.text.
Example request
curl -X POST https://caremcp.com/api/pro/work/7d1f0a0e-2c4b-4c7e-9a6e-000000000001/text \
-H "Authorization: Bearer <session or access token>" \
-H "Content-Type: application/json" \
-d '{"text":"benpress först pga knät, max 90 grader","mode":"translate"}'
Example input
{
"id": "7d1f0a0e-2c4b-4c7e-9a6e-000000000001",
"text": "benpress först pga knät, max 90 grader",
"mode": "translate"
}
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 8000
},
"mode": {
"type": "string",
"enum": [
"tidy",
"translate"
]
}
},
"required": [
"id",
"text",
"mode"
]
}
Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
}