Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

Record a marketing enquiry

Public. Stores one landing page enquiry so a visitor’s message reaches an operator. A name, a valid email, and a message are required, and one address is capped at five a minute.

POST/api/v1/marketing/contact
Request body
requiredapplication/json
namestringrequired
min length 1 · max length 120
emailstringrequired
max length 200 · matches ^[^@\s]+@[^@\s]+\.[^@\s]+$
phonestring
max length 24 · default: ""
topicstring
max length 80 · default: ""
messagestringrequired
min length 1 · max length 4000
Responses
201

The enquiry is stored

okbooleanrequired
400

The body is missing a name or a message, or the email does not look like an address

detailstringrequired
429

Too many messages, try again later

detailstringrequired
Try it
Server
Bodyapplication/json
Request
curl -X POST 'http://localhost:8000/api/v1/marketing/contact' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "email": "string",
  "phone": "",
  "topic": "",
  "message": "string"
}'
Response
{
  "ok": true
}