Skip to main content
POST
/
audiences
/
{id}
/
contacts
Create Contact
curl --request POST \
  --url https://api.amisend.com/audiences/{id}/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "user@example.com"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "contacts": [
    "<string>"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of the audience

Body

application/json
email
string
Example:

"user@example.com"

Response

Contact added to audience

_id
string
name
string
contacts
string[]
createdAt
string<date-time>
updatedAt
string<date-time>
I