Required header
Send the API key with each server-to-server request. The key should be loaded from your environment variables or secret manager. The example below calls GET /api/content/accounts to confirm the key works; the response lists the connected accounts for the workspace.
const headers = {
'X-API-Key': process.env.WAHDX_API_KEY
};import os
headers = {
'X-API-Key': os.environ['WAHDX_API_KEY']
}curl -H "X-API-Key: $WAHDX_API_KEY" "https://api.wahdx.com/api/content/accounts"{
"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
}
]
}