ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiContact

Submit contact form

POST
/api/v1/contact

Public endpoint for contact form submissions. Sends email to admin.

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
name*string
email*string
phone?string
subject*string
message*string

Response Body

Contact form submitted successfully

response?unknownapplication/json
Example Request
curl -X POST 'http://localhost:3001/api/v1/contact' \  -H 'Content-Type: application/json' \  -d '{  "name": "John Doe",  "email": "john@example.com",  "subject": "General Inquiry",  "message": "I would like to know more about your services."}'
Example Response
{  "status": "success",  "statusCode": 201,  "message": "Thank you for contacting us! We will get back to you soon.",  "data": {    "id": "uuid",    "name": "John Doe",    "email": "john@example.com",    "subject": "General Inquiry",    "message": "I would like to know more...",    "status": "new",    "createdAt": "2026-02-01T10:00:00.000Z"  },  "meta": {    "contact_id": "uuid",    "created_at": "2026-02-01T10:00:00.000Z"  }}