Create Audience
Returns the stored audience and its id.
Use it when you have a rule set that compiles cleanly and want FullVision to keep the segment up to date from now on. Nothing is delivered anywhere until you attach a destination.
Create a new audience. The criteria JSON is validated and compiled; if any leaf references an unknown field, op, or violates the anchored-negation rule, the call is rejected with 422 and a list of AudienceCriteriaError items before any row is written.
API key as Bearer token
In: header
Request Body
application/json
Responses
Created. Returns the new id only — fetch GET /v1/audiences/{id} for the full record.
/v1/audiencescurl -X POST "https://db.fullvision.io/v1/audiences" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "criteria_json": { "version": 1, "root": { "op": "and", "children": [ null ] } } }'{ "name": "string", "criteria_json": { "version": 1, "root": { "op": "and", "children": [ null ] } }}{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9", "created_at": "2019-08-24T14:15:22Z"}