Endpoint and authentication
Call this endpoint with the same X-API-Key header used by other public content API endpoints. The response includes the current subscription plan and a normalized data array with active plus expired accounts, so your app can show which accounts need reconnection. Each item uses accountId, not the raw platform user ID, when calling publishing and status endpoints.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
const response = await fetch(API_BASE_URL + '/api/content/accounts', {
method: 'GET',
headers: {
'X-API-Key': API_KEY
}
});
const result = await response.json();
if (!response.ok || !result.success) {
throw new Error(result.error || 'Failed to fetch connected accounts');
}
const accounts = result.data;import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
response = requests.get(
API_BASE_URL + '/api/content/accounts',
headers={
'X-API-Key': API_KEY,
},
timeout=30,
)
response.raise_for_status()
result = response.json()
if not result.get('success'):
raise RuntimeError(result.get('error') or 'Failed to fetch connected accounts')
accounts = result['data']curl -X GET "https://api.wahdx.com/api/content/accounts" \
-H "X-API-Key: $WAHDX_API_KEY"{
"success": true,
"subscription": "pro",
"data": [
{
"accountId": "acc_tiktok_internal_uuid",
"platform": "tiktok",
"display_name": "Wahdx Creator",
"username": "wahdx_creator",
"avatar_url": "https://example.com/avatar.jpg",
"bio_description": "Content team account",
"status": "active",
"followers": 12000,
"following": 210,
"likes": 45000,
"videos": 128,
"is_verified": false
},
{
"accountId": "acc_instagram_internal_uuid",
"platform": "instagram",
"display_name": "Wahdx Studio",
"username": "wahdx.studio",
"avatar_url": "https://example.com/instagram.jpg",
"bio_description": "Studio profile",
"status": "active",
"followers": 8400,
"following": 180,
"likes": null,
"videos": 96,
"is_verified": null
},
{
"accountId": "acc_threads_internal_uuid",
"platform": "threads",
"display_name": "Wahdx Threads",
"username": "wahdx_threads",
"avatar_url": "https://example.com/threads.jpg",
"bio_description": "Threads profile",
"status": "expired",
"followers": 3200,
"following": 85,
"likes": null,
"videos": null,
"is_verified": null
},
{
"accountId": "acc_facebook_internal_uuid",
"platform": "facebook",
"display_name": "Wahdx Page",
"username": "1234567890",
"avatar_url": "https://example.com/page.jpg",
"bio_description": "Facebook Page",
"status": "active",
"followers": 5600,
"following": null,
"likes": 4100,
"videos": null,
"is_verified": null
}
]
}