Contact API
POST /api/v1/contact
Section titled “POST /api/v1/contact”Creates a CRM lead in the Odoo backend from a contact form submission.
Request
Section titled “Request”curl -X POST https://admin.deploymonkey.com/api/v1/contact \ -H "Content-Type: application/json" \ -d '{ "name": "John Doe", "email": "john@example.com", "subject": "Enterprise pricing question", "message": "I am interested in the Pro plan for my team of 20..." }'Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Contact’s full name |
email | string | Yes | Contact’s email address |
subject | string | Yes | Message subject |
message | string | Yes | Message body |
Success Response
Section titled “Success Response”{ "success": true, "message": "Thank you! We'll be in touch soon."}Validation Error Response
Section titled “Validation Error Response”{ "success": false, "error": "Missing required fields: name, email, subject, message"}What Happens
Section titled “What Happens”When a contact form is submitted:
-
A CRM lead is created in Odoo with:
- Lead name: The subject line
- Contact name and email
- Description: The message body
- UTM source: “Website Contact Form”
-
The lead appears in the CRM pipeline in the Odoo backend at
admin.deploymonkey.com -
Sales team members are notified based on CRM automation rules configured in Odoo