post
https://api.clerk.io/v2/audiences
Create audience definitions.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Create audiences using a JSON body containing key, private_key, and an audiences array. Each complete object in this example has id, name, and conditions. Supply id: 0 as the creation placeholder; the API assigns a generated audience ID. The empty conditions array in this example specifies no conditions.
POST returns status ok without the generated ID. Use GET /audiences/list to find the new audience by name, then use its generated ID for GET, PATCH, and DELETE.
Check status in the response body even when HTTP 200 is returned. Keep your private API key on your server.
