Skip to content

Audience

An audience: a selection of customers that an engagement is sent to.

type Audience {
code: String!
created: Instant!
definition: AudienceDefinition
hasDrifted: Boolean!
id: Guid!
isArchived: Boolean!
lastRefreshFailure: AudienceRefreshFailure
lastRefreshedAt: LocalDateTime
memberCount: Int!
name: String!
onsale: Onsale
reachableByEmailCount: Int!
reachableByMobileCount: Int!
reachableByPushCount: Int!
reachableCount: Int!
status: AudienceStatus!
tagType: AudienceTagType
updated: Instant!
}

The audience’s code.

When the audience was created.

The conditions that select the audience’s members. Null: the members are added by hand.

Whether the definition changed after the last refresh. If so, the members are out of date.

Unique identifier.

Whether the audience is archived.

Why the last refresh failed. Null once a refresh succeeds.

When the members were last refreshed, in UTC. Null: never refreshed.

How many members the audience has.

The audience’s name.

The onsale that the audience was created for. Null: none.

Members that a marketing send can reach by email.

Members that a marketing send can reach by mobile: SMS or WhatsApp.

Members that a marketing send can reach by web push.

Members that a marketing send can reach by at least one medium.

Where the audience’s member list stands.

The tag applied to everyone in the audience, even when archived. Null: none.

When the audience was last changed.

marketing.audiences.addAudienceMembers mutation ● marketing.audiences.audience query ● marketing.audiences.createAudienceFromOnsale mutation ● marketing.audiences.refreshAudience mutation ● marketing.audiences.removeAudienceMember mutation ● marketing.audiences.saveAudience mutation ● marketing.audiences.toggleArchiveAudience mutation

AudienceTagType object ● Onsale object