Add contacts to a list
Last updated
Was this helpful?
Last updated
Was this helpful?
Let's establish some of our data that will be used in the following examples:
Workspace ID: a1405560-c8d3-4b1a-877d-3f449ad95352
AccessKey: abcd
List ID: 123e4567-e89b-12d3-a456-426614174000
Contact ID: 12bd0e40-9361-4e32-8b26-99b4ab7eae09
In this example, we're adding a contact to a list given both IDs.
curl -X POST "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/lists/123e4567-e89b-12d3-a456-426614174000/contacts" \
-H "Content-Type: application/json" \
-H "Authorization: AccessKey abcd" \
-d '{
"contacts": ["12bd0e40-9361-4e32-8b26-99b4ab7eae09"]
}'
This endpoint will add one or more contacts to the specified list.
Your workspace identifier.
b4e02c85-c6d2-4b15-8885-e09671799c61
The ID of a list.
b4e02c85-c6d2-4b15-8885-e09671799c61
The list of contact ids to add to the list.
123e4567-e89b-12d3-a456-426614174000
POST /workspaces/{workspaceId}/lists/{listId}/contacts HTTP/1.1
Host: api.bird.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"contacts": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
{
"itemsProcessed": 100
}