Skip to content
SarvexDocs
Esc
↑↓navigate↵open⌘Jpreview

Receive a contact-form submission from the marketing website

POST/contact
Authorization
AuthorizationBearer token · headerrequired

Static shared bearer token issued to the sarvex.example.com marketing website only, used solely by POST /contact. Not a JWT, not merchant/operator-scoped, and unrelated to bearerAuth above — the website has no Sarvex account.

Request body
requiredapplication/json
namestringrequired
max length 200
emailstring<email>required
max length 320
messagestring
max length 4000
sourcestring

Free-form origin tag supplied by the caller.

Responses
202

Submission accepted and forwarded by email.

401

Missing or invalid credentials.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
detailsobject | null
422

Request body failed validation.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
detailsobject | null
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.sarvex.example.com/v1/contact" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "email": "user@example.com",
  "message": "string",
  "source": "string"
}'
Response
Submission accepted and forwarded by email.