Skip to content

Contact API

Creates a CRM lead in the Odoo backend from a contact form submission.

Terminal window
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..."
}'
FieldTypeRequiredDescription
namestringYesContact’s full name
emailstringYesContact’s email address
subjectstringYesMessage subject
messagestringYesMessage body
{
"success": true,
"message": "Thank you! We'll be in touch soon."
}
{
"success": false,
"error": "Missing required fields: name, email, subject, message"
}

When a contact form is submitted:

  1. 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”
  2. The lead appears in the CRM pipeline in the Odoo backend at admin.deploymonkey.com

  3. Sales team members are notified based on CRM automation rules configured in Odoo