POST
/
contacts
cURL
curl --request POST \
  --url https://api.alpharun.com/api/v1/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "phone_number": "<string>",
  "ext_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "custom_fields": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "email": "[email protected]",
  "phone_number": "<string>",
  "ext_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "custom_fields": [
    {
      "key": "<string>",
      "value": "<string>",
      "type": "<string>",
      "display_name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

At least one of email, phone number and ext id must be not null on the contact.

The body is of type object.

Response

200
application/json

Contact created successfully

The response is of type object.