API referenceAudience Counts
Cancel an audience count
Stops it where it is; a count that’s done stays as it is.
POST
Stops it where it is; a count that’s done stays as it is.
apiKey readheader
AuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
id*stringFormat
uuididempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
Length
1 <= length <= 255OK
application/json- response
id*stringFormat
uuidstatus*stringValue in
"queued""running""done""failed""cancelled"count*integer|nullerror*string|nullcreatedAt*stringFormat
date-timestartedAt*|Format
date-timefinishedAt*|Format
date-timecurl -X POST 'https://api.postforge.dev/v1/audience-counts/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'{ "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"}