List YouTube playlists
Returns the playlists available for a connected YouTube account. Use this to get a playlist ID when creating a YouTube post with the `playlistId` field.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://zernio.com/api/v1/accounts/string/youtube-playlists"{
"playlists": [
{
"id": "PLxxxxxxxxxxxxx",
"title": "Tutorials",
"description": "Step-by-step video tutorials",
"privacy": "public",
"itemCount": 24,
"thumbnailUrl": "https://i.ytimg.com/vi/xxx/mqdefault.jpg"
},
{
"id": "PLyyyyyyyyyyyyy",
"title": "Vlogs",
"description": "Weekly vlogs",
"privacy": "public",
"itemCount": 52,
"thumbnailUrl": "https://i.ytimg.com/vi/yyy/mqdefault.jpg"
}
],
"defaultPlaylistId": null
}{
"error": "Unauthorized"
}Connect WhatsApp via credentials POST
Connect a WhatsApp Business Account by providing Meta credentials directly. This is the headless alternative to the Embedded Signup browser flow. To get the required credentials: 1. Go to Meta Business Suite (business.facebook.com) 2. Create or select a WhatsApp Business Account 3. In Business Settings > System Users, create a System User 4. Assign it the `whatsapp_business_management` and `whatsapp_business_messaging` permissions 5. Generate a permanent access token 6. Get the WABA ID from WhatsApp Manager > Account Tools > Phone Numbers 7. Get the Phone Number ID from the same page (click on the number)
Set default YouTube playlist PUT
Sets the default playlist used when publishing videos for this account. When a post does not specify a `playlistId`, the default playlist is not automatically used (it is stored for client-side convenience).