curl --request POST \
--url https://api.selfmailkit.com/v1/audiences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Weekly newsletter subscribers"
}'
{
"id": "0195ceb7-f8cb-7558-b3aa-1280acb8b417"
}

Authorizations

Authorization
string
header
required

API key with format "Bearer {your-api-key}"

Body

application/json

Response

200
application/json

Audience successfully created

The response is of type any.

curl --request POST \
--url https://api.selfmailkit.com/v1/audiences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Weekly newsletter subscribers"
}'
{
"id": "0195ceb7-f8cb-7558-b3aa-1280acb8b417"
}

Authorizations

Authorization
string
header
required

API key with format "Bearer {your-api-key}"

Body

application/json

Response

200
application/json

Audience successfully created

The response is of type any.