POST /api/public/contact

A message to us from the contact page: who, how to answer, what it is about. It arrives as mail and a person answers.

Surface: public. Who may call: public. Key: public.contact.

Example request

curl -X POST https://caremcp.com/api/public/contact \
  -H "Content-Type: application/json" \
  -d '{"name":"Anna Lind","email":"anna@example.com","topic":"personal","message":"Can my agent order a plan for a half marathon in March?"}'

Example input

{
  "name": "Anna Lind",
  "email": "anna@example.com",
  "topic": "personal",
  "message": "Can my agent order a plan for a half marathon in March?"
}

Input schema

{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "minLength": 1,
   "maxLength": 100
  },
  "email": {
   "type": "string",
   "maxLength": 200,
   "format": "email",
   "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  },
  "topic": {
   "type": "string",
   "enum": [
    "personal",
    "professional",
    "organisation",
    "press",
    "other"
   ],
   "description": "What the message is about."
  },
  "message": {
   "type": "string",
   "minLength": 10,
   "maxLength": 5000
  },
  "website": {
   "type": "string",
   "maxLength": 0
  }
 },
 "required": [
  "name",
  "email",
  "topic",
  "message"
 ]
}

Output schema

{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "ok": {
   "type": "boolean",
   "const": true
  }
 },
 "required": [
  "ok"
 ],
 "additionalProperties": false
}