Ingest API

Add contacts to your CRM from external sources.

Use this endpoint to push leads from your landing pages, forms, or other applications. Adding a contact via this API will trigger any automations configured with the "Contact Added" trigger.

POST/api/ingest

Request Body

Send a JSON body with the contact details.

{
  "email": "user@example.com",     // Required
  "first_name": "John",
  "last_name": "Doe",
  "company": "Acme Inc",
  "tags": ["web-lead", "q1-campaign"],
  "custom_field_1": "value"        // Any extra fields are stored as custom_fields
}

Example Request

curl -X POST "https://automailai.vercel.app/api/ingest?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "newlead@example.com",
    "first_name": "Alice"
  }'