Skip to content

Channel:QueryChannels

Requests the state of the Notification Channels for the authenticated user.

Controller: Channel
Topic: QueryChannels
Action: Publish
Permissions: None

No Request Body

An array of Channel State objects.

NameTypeExpectDescription
IDStringAlwaysThe unique identifier of the existing Channel.
NameStringAlwaysThe user-defined name for the Channel.
DescriptionStringSometimesAn optional description providing further details of the Channel.
TypeStringAlwaysThe Distribution Method to use.
MetadataObjectAlwaysAn user-defined object with string values.
StatusStringAlwaysThe status of the Channel. One of:
Active: Channel is active and can distribute notifications.
Inactive: Channel is inactive. Will not distribute notifications - all notifications sent will be lost.
Faulted: Channel has failed due to an error. Will not provide notifications - all notifications sent will be lost.

See Appendix K - Distribution Channels for more information on the available Distribution Method types.

Send:

{"Controller":"Channel","Topic":"QueryChannels","TransactionID":1}

Receive:

{"Controller":"Channel","Topic":"QueryChannels","TransactionID":1,"Data":"Data":[
{
"ID":"j5Tm6X",
"Name":"ArcLight (Phone)",
"Description":"ArcLight in Firefox Mobile",
"Type":"Push.Web",
"Metadata":{"Category":"Phone"},
"Status":"Active"
}
]}