Skip to main content
POST
/
contacts
Create Contact
curl --request POST \
  --url https://public.watermelon.ai/api/v1/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "<string>",
  "last_name": "<string>",
  "email_address": "<string>",
  "telephone_number": "<string>",
  "from_integration": true,
  "integration": "<string>",
  "from_whatsapp": true,
  "from_email": true,
  "fields": [
    {
      "id": 1,
      "company_id": 123,
      "icon": "information",
      "name": "Order number",
      "type": "text",
      "order": 123,
      "value": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z",
      "is_unique": true
    }
  ]
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
first_name
string
last_name
string
email_address
string
telephone_number
string
from_integration
boolean
integration
string
from_whatsapp
boolean
from_email
boolean
fields
object[]

Response

Created contact ID

id
integer