Count an audience
Starts counting the profiles (the known ones the profiles list shows) that meet `conditions`, or a segment’s: its published version or its draft. Answers at once with the count’s id; read it until it’s `done`. A condition that can’t be answered is a 400 with its path, before anything is counted.
Starts counting the profiles (the known ones the profiles list shows) that meet conditions, or a segment’s: its published version or its draft. Answers at once with the count’s id; read it until it’s done. A condition that can’t be answered is a 400 with its path, before anything is counted.
apiKey readAuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
idempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
1 <= length <= 255application/json- body
conditions*|||||||||Created
application/json- response
id*stringuuidstatus*string"queued""running""done""failed""cancelled"count*integer|nullerror*string|nullcreatedAt*stringdate-timestartedAt*|date-timefinishedAt*|date-timecurl -X POST 'https://api.postforge.dev/v1/audience-counts' \ -H 'Content-Type: application/json' \ -d '{ "conditions": { "type": "and", "conditions": [ { "type": "and", "conditions": [ null ] } ] }}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "queued", "count": 0, "error": "string", "createdAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z"}