advertising
Delete custom audience
Deletes the audience from both Meta and the local database.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
audienceIdstring
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaudiences.deleteAdAudience({ path: { audienceId: 'audience_abc123', },});console.log(data);{
"message": "string"
}{
"error": "Unauthorized"
}Empty
{
"error": "Not found"
}Get audience details GET
Returns the local audience record and fresh data from Meta (if available).
Add users to audience POST
Upload user data to a customer_list audience. Data is SHA256-hashed server-side before sending to the platform. Email is used on every platform; phone is used on Meta only (other platforms ignore it). On TikTok and Pinterest, the first upload also provisions the audience (deferred create). LinkedIn uploads are full-replace. Max 10,000 users per request.