Skip to main content
POST
Create audience

Authorizations

Authorization
string
header
required

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

application/json

Send either members or fileId with mapping, not both.

name
string
required

Human-readable name for this resource.

Value constraints

Required string length: 1 - 200
source
enum<string>

Defaults to csv with fileId, otherwise manual.

Allowed values

Available options:
csv,
manual,
api
members
object[]

Members associated with this management create audience request.

Value constraints

Maximum array length: 1000
fileId
string

File id returned by the audience upload URL. UTF-8 CSV with a header row; comma, semicolon or tab separated.

Value constraints

Required string length: 1 - 512
mapping
object

Structured mapping values for this management create audience request.

Response

Success

data
object
required

Structured data carried by this object.