Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Created contact ID
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
}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
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Created contact ID