connect
Get pending OAuth data
Fetch pending OAuth data for headless mode using the pendingDataToken from the redirect URL. One-time use, expires after 10 minutes. No authentication required.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
tokenstring
The pending data token from the OAuth redirect URL (pendingDataToken parameter)
Response Body
application/json
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/connect/pending-data?token=string"{
"platform": "linkedin",
"profileId": "abc123",
"tempToken": "AQV...",
"refreshToken": "AQW...",
"expiresIn": 5183999,
"userProfile": {
"id": "ABC123",
"username": "John Doe",
"displayName": "John Doe",
"profilePicture": "https://..."
},
"selectionType": "organizations",
"organizations": [
{
"id": "12345",
"urn": "urn:li:organization:12345",
"name": "Acme Corp",
"vanityName": "acme-corp"
},
{
"id": "67890",
"urn": "urn:li:organization:67890",
"name": "Example Inc",
"vanityName": "example-inc"
}
]
}{
"error": "string",
"details": {}
}{
"error": "string",
"details": {}
}Complete OAuth callback POST
Exchange the OAuth authorization code for tokens and connect the account to the specified profile.
List Facebook pages GET
Returns the list of Facebook Pages the user can manage after OAuth. Extract tempToken and userProfile from the OAuth redirect params and pass them here. Use the X-Connect-Token header if connecting via API key.