Create audience
Creates an audience from inline members (at most 1,000) or from an uploaded CSV file (fileId + mapping). Numbers are normalized to E.164 and repeated numbers are kept once. A file import accepts at most 100,000 data rows; a larger file is refused with 413 and must be split. The response reports how many rows were invalid, with up to 20 samples. recipientCount is the number of stored members; any client-supplied count is ignored.
Requires a team API key with campaigns:manage. Project tokens are not accepted.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Body
Send either members or fileId with mapping, not both.
Human-readable name for this resource.
Value constraints
1 - 200Defaults to csv with fileId, otherwise manual.
Allowed values
csv, manual, api Members associated with this management create audience request.
Value constraints
1000File id returned by the audience upload URL. UTF-8 CSV with a header row; comma, semicolon or tab separated.
Value constraints
1 - 512Structured mapping values for this management create audience request.
Response
Success
Structured data carried by this object.