Audiences

Create an audience

POST/v1/audiencesrequires campaign:write

Requestcurl -X POST https://api.transmit.dev/v1/audiences \
  -H "Authorization: Bearer tr_v2_…" \
  -H "Content-Type: application/json" \
  -d '{
       "name": "…"
     }'

Body

FieldTypeNotes
name requiredstring1–200 characters
descriptionstringat most 1000 characters
contact_idsstring[]at most 100000. defaults to []

Responses

StatusMeaning
201The created audience
401The API key is missing, malformed, expired or revoked
403The API key lacks the campaign:write scope
422A contact id does not belong to your organization

Every response body is described in the OpenAPI spec, which this page is generated from.