Contact API
The Contact API accepts form submissions, sends email notifications via Resend, and forwards messages to Telegram.
Endpoint
POST /api/contact
Request Body
{
"name": "John Doe",
"email": "john@example.com",
"company": "Acme Inc",
"message": "We'd like to discuss a new project...",
"budget": "$10k-25k",
"service": "web-development"
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Full name |
email | string | Yes | Valid email address |
company | string | No | Company or organization |
message | string | Yes | Enquiry message (max 5000 chars) |
budget | string | No | Budget range |
service | string | No | Service of interest |
Responses
200 OK
{
"success": true,
"message": "Message sent successfully"
}
400 Bad Request
{
"error": "Name, email, and message are required"
}
500 Internal Server Error
{
"error": "Failed to send message"
}
Rate Limiting
The endpoint is rate-limited to 5 submissions per IP per minute to prevent abuse.
What Happens After Submission
- Email notification sent to the team via Resend
- Message forwarded to the Telegram monitoring channel
- Auto-reply email sent to the submitter (if configured)