---
title: "Create a contact"
method: POST
path: "/contacts"
tags: ["Contacts"]
---

# Create a contact

`POST /contacts`

## Request body

- CreateContact
  - `email` string, email — Email address of the user. Mandatory if "SMS" field is not passed in "attributes" parameter. Mobile Number in "SMS" field should be passed with proper country code. For example {"SMS":"+91xxxxxxxxxx"} or {"SMS":"0091xxxxxxxxxx"}
  - `ext_id` string — Pass your own Id to create a contact.
  - `attributes` object — Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. Values that don't match the attribute type (e.g. text or string in a date attribute) will be ignored.These attributes must be present in your Brevo account. For eg. {"FNAME":"Elly", "LNAME":"Roger"}
  - `emailBlacklisted` boolean — Set this field to blacklist the contact for emails (emailBlacklisted = true)
  - `smsBlacklisted` boolean — Set this field to blacklist the contact for SMS (smsBlacklisted = true)
  - `listIds` integer[] — Ids of the lists to add the contact to
  - `updateEnabled` boolean — Facilitate to update the existing contact in the same request (updateEnabled = true)
  - `smtpBlacklistSender` string[] — transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )

## Response `201`

Contact created

- CreateUpdateContactModel
  - `id` integer — ID of the contact when a new contact is created

## Other responses

- `204` — Contact updated
- `400` — bad request

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
