connect
Complete OAuth callback
Exchange the OAuth authorization code for tokens and connect the account to the specified profile.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Path Parameters
platformstring
codestring
statestring
profileIdstring
Response Body
application/json
curl -X POST "https://getlate.dev/api/v1/connect/string" \ -H "Content-Type: application/json" \ -d '{ "code": "string", "state": "string", "profileId": "string" }'Empty
Empty
{
"error": "Unauthorized"
}Empty
Empty
Get OAuth connect URL GET
Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Late hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
Get pending OAuth data GET
Fetch pending OAuth data for headless mode using the pendingDataToken from the redirect URL. One-time use, expires after 10 minutes. No authentication required.