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!}Fields
Section titled “Fields”code ● String!non-nullscalar
Section titled “code ● String! ”The audience’s code.
created ● Instant!non-nullscalar
Section titled “created ● Instant! ”When the audience was created.
The conditions that select the audience’s members. Null: the members are added by hand.
hasDrifted ● Boolean!non-nullscalar
Section titled “hasDrifted ● Boolean! ”Whether the definition changed after the last refresh. If so, the members are out of date.
id ● Guid!non-nullscalar
Section titled “id ● Guid! ”Unique identifier.
isArchived ● Boolean!non-nullscalar
Section titled “isArchived ● Boolean! ”Whether the audience is archived.
lastRefreshFailure ● AudienceRefreshFailureenum
Section titled “lastRefreshFailure ● AudienceRefreshFailure ”Why the last refresh failed. Null once a refresh succeeds.
When the members were last refreshed, in UTC. Null: never refreshed.
memberCount ● Int!non-nullscalar
Section titled “memberCount ● Int! ”How many members the audience has.
name ● String!non-nullscalar
Section titled “name ● String! ”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.
reachableCount ● Int!non-nullscalar
Section titled “reachableCount ● Int! ”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.
updated ● Instant!non-nullscalar
Section titled “updated ● Instant! ”When the audience was last changed.
Returned By
Section titled “Returned By”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
Member Of
Section titled “Member Of”AudienceTagType object ● Onsale object

