Contact Form
Endpoint
POST /api/v1/contact
Description
Submits a contact form and sends an email notification to the site administrator.
Request Headers
Header | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Yes | The content type of the request |
Accept | application/json | No | The expected response format |
X-API-Key | YOUR_TENANT_API_KEY | Yes | API Key For Tenant |
Request Body
{
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "123-456-7890",
"company": "Example Inc",
"description": "General inquiry",
"message": "Hello, I would like to know more about your services."
}
Fields
Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | First name of the user |
last_name | string | Yes | Last name of the user |
string | Yes | Email address of the user | |
phone | string | No | Phone number of the user |
company | string | No | Company name |
description | string | Yes | Short description of the inquiry |
message | string | Yes | Full message content |
Response
Success (200)
{
"success": true,
"message": "Form sent successfully"
}
Validation Error (422)
{
"message": "The given data was invalid.",
"errors": {
"email": ["The email field is required."]
}
}
01 April 2026