Query
query BroadcastAudiences {
broadcastAudiences {
edges {
cursor
node {
id
name
type
filters {
__typename
}
isDeleted
createdAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"broadcastAudiences": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"type": "SLACK",
"filters": {
"__typename": "BroadcastAudienceFilter"
},
"isDeleted": true,
"createdAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
broadcastAudiences
Returns a paginated list of the workspace’s broadcast audiences, newest first. Soft-deleted
audiences are excluded. Requires the broadcastAudience:read permission.
QUERY
broadcastAudiences(searchQuery: String, first: Int, after: String, last: Int, before: String): BroadcastAudienceConnection!Arguments
searchQuery
String
Narrows to audiences whose name contains this, matched case-insensitively and unanchored. Searched in the database rather than on the page, so it finds audiences a client has not loaded.
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query BroadcastAudiences {
broadcastAudiences {
edges {
cursor
node {
id
name
type
filters {
__typename
}
isDeleted
createdAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"broadcastAudiences": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"type": "SLACK",
"filters": {
"__typename": "BroadcastAudienceFilter"
},
"isDeleted": true,
"createdAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

