Skip to main content
GET
Channel metadata

Overview

This method returns the channel metadata with all the channel information and its view settings.

Attributes

string
required
Your instance ID. Available in the Z-API panel under Instances.
string
required
Your Z-API instance token.

Path

string
required
Channel ID

Query Parameters

boolean
When sent as true, includes the subscribers field in the response with the channel’s list of subscribers. Default value is false.

Response

200

string
Channel ID
number
Channel creation timestamp
string
Channel state (ACTIVE or NON_EXISTING)
string
Channel name
string
Channel description
string
Number of channel subscribers
Channel invite link
string
Verification status (VERIFIED or UNVERIFIED)
string
Channel image URL
string
Channel preview image URL
object
Channel view information
array
List with up to 9 channel subscribers. Only returned when the mustGetSubscribers parameter is sent as true.
The channel ID must always contain the @newsletter suffix, as this is the standard used by WhatsApp.
WhatsApp only returns subscribers who are in the requester’s contact list, and the requester must be an admin of the channel. In addition, this list returns at most 9 subscribers, the same limit shown on the channel info screen in WhatsApp Web. To get the complete list of subscribers, use the List channel subscribers endpoint.

405

Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.

415

If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.