Skip to main content
The client.Audience service manages everything campaigns send to. Each kind is a sub-service:
Like the other services, every method takes a context.Context as its first argument.

Contacts

Contact status constants: ContactStatusSubscribed, ContactStatusUnsubscribed, ContactStatusBounced, ContactStatusComplained, ContactStatusUnverified.

API Reference

GET /audience/contacts

Double opt-in

Pass a DoubleOptInConfig to create the contact as unverified and send a confirmation email — they become subscribed after clicking the link:

Bulk operations & membership

Lists

API Reference

GET /audience/lists

Segments

A segment is a dynamic group defined by conditions. Groups are joined by OR; conditions within a group by AND.
Operator constants include SegmentOperatorEquals, SegmentOperatorContains, SegmentOperatorEndsWith, SegmentOperatorIsTrue, and others.

API Reference

GET /audience/segments

Topics

API Reference

GET /audience/topics

Properties

Custom contact properties have an immutable name and type; only the fallback can be updated.

API Reference

GET /audience/properties

What’s Next

Campaigns

Send to your audience

API Reference

Full audience API reference