Create contact

Adds a contact to an audience.

POST/audiences/:audience_id/contacts

Path parameters

  • audience_idstringrequired

    The audience ID.

Body parameters

  • emailstringrequired

    Contact email.

  • first_namestring

    Used by {{{FIRST_NAME}}}.

  • last_namestring

    Used by {{{LAST_NAME}}}.

  • unsubscribedboolean

    Default false.

Request

curl -X POST 'https://api.mailvina.com/audiences/:audience_id/contacts' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "[email protected]",
  "first_name": "Ada",
  "last_name": "Lovelace"
}'

Response

{
  "object": "contact",
  "id": "e169aa45-1ecf-4183-9955-b1499d5701d3"
}