connect
Select Pinterest board
Complete the Pinterest connection flow. After OAuth, use this endpoint to save the selected board and complete the account connection. Use the X-Connect-Token header if you initiated the connection via API key.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
profileIdstring
Your Late profile ID
boardIdstring
The Pinterest Board ID selected by the user
boardName?string
The board name (for display purposes)
tempTokenstring
Temporary Pinterest access token from OAuth
userProfile?object
User profile data from OAuth redirect
refreshToken?string
Pinterest refresh token (if available)
expiresIn?integer
Token expiration time in seconds
redirect_url?string
Custom redirect URL after connection completes
Format
uriResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/connect/pinterest/select-board" \ -H "Content-Type: application/json" \ -d '{ "profileId": "64f0a1b2c3d4e5f6a7b8c9d0", "boardId": "123456789012345678", "boardName": "Marketing Ideas", "tempToken": "pina_...", "userProfile": { "id": "user123", "username": "mybrand", "displayName": "My Brand", "profilePicture": "https://i.pinimg.com/..." }, "redirect_url": "https://yourapp.com/callback" }'{
"message": "Pinterest connected successfully with default board",
"redirect_url": "https://yourdomain.com/integrations/callback?connected=pinterest&profileId=507f1f77bcf86cd799439011&board=Marketing+Ideas",
"account": {
"accountId": "64e1f0a9e2b5af0012ab34cd",
"platform": "pinterest",
"username": "mybrand",
"displayName": "My Brand",
"profilePicture": "https://i.pinimg.com/...",
"isActive": true,
"defaultBoardName": "Marketing Ideas"
}
}{
"error": "Missing required fields"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}Empty