Skip to main content
POST
/
api
/
v1
/
audience
/
create-account-audience
Create Account Audience Endpoint
curl --request POST \
  --url https://api.openfunnel.dev/api/v1/audience/create-account-audience \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --header 'X-User-ID: <x-user-id>' \
  --data '
{
  "name": "<string>",
  "account_ids": [
    123
  ]
}
'
{
  "audience_id": 123,
  "audience_name": "<string>",
  "total_accounts": 123
}

Headers

X-API-Key
string
required
X-User-ID
string
required

Body

application/json
name
string
required

Name for the new audience

account_ids
integer[]
required

List of account IDs to include

Response

Successful Response

audience_id
integer
required
audience_name
string
required
total_accounts
integer
required