Connect WhatsApp via credentials
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)
API key authentication - use your Late API key as a Bearer token
In: header
Your Late profile ID
Permanent System User access token from Meta Business Suite
WhatsApp Business Account ID from Meta
Phone Number ID from Meta WhatsApp Manager
Response Body
application/json
curl -X POST "https://getlate.dev/api/v1/connect/whatsapp/credentials" \ -H "Content-Type: application/json" \ -d '{ "profileId": "6507a1b2c3d4e5f6a7b8c9d0", "accessToken": "EAABsbCS...your-system-user-token", "wabaId": "123456789012345", "phoneNumberId": "987654321098765" }'{
"message": "WhatsApp connected successfully",
"account": {
"accountId": "6507a1b2c3d4e5f6a7b8c9d0",
"platform": "whatsapp",
"username": "+1 555-123-4567",
"displayName": "Acme Corp",
"isActive": true,
"phoneNumber": "+1 555-123-4567",
"verifiedName": "Acme Corp",
"qualityRating": "GREEN"
}
}Select Snapchat profile POST
Complete the Snapchat connection flow by saving the selected Public Profile. Snapchat requires a Public Profile to publish content. Use X-Connect-Token if connecting via API key.
Get post analytics GET
Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. Accepts both Late Post IDs and External Post IDs (auto-resolved). Data is cached and refreshed at most once per hour. For follower stats, use /v1/accounts/follower-stats.