Invites
Create a team member invite token
Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use.
API key authentication - use your Late API key as a Bearer token
In: header
'all' grants access to all profiles, 'profiles' restricts to specific profiles
"all" | "profiles"Required if scope is 'profiles'. Array of profile IDs to grant access to.
Response Body
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/invite/tokens" \ -H "Content-Type: application/json" \ -d '{ "scope": "profiles", "profileIds": [ "64f0a1b2c3d4e5f6a7b8c9d0", "64f0a1b2c3d4e5f6a7b8c9d1" ] }'{
"token": "inv_abc123def456ghi789",
"scope": "profiles",
"invitedProfileIds": [
"64f0a1b2c3d4e5f6a7b8c9d0",
"64f0a1b2c3d4e5f6a7b8c9d1"
],
"expiresAt": "2024-11-08T10:30:00Z",
"inviteUrl": "https://getlate.dev/invite/inv_abc123def456ghi789"
}{
"error": "Unauthorized"
}List platform connection invites
Get all platform connection invites you've created
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Optional. Filter invites by profile ID
Response Body
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/platform-invites"{
"invites": [
{
"_id": "6507a1b2c3d4e5f6a7b8c9d0",
"token": "pinv_abc123def456",
"userId": "6507a1b2c3d4e5f6a7b8c9d1",
"profileId": "64f0a1b2c3d4e5f6a7b8c9d0",
"platform": "instagram",
"inviterName": "John Doe",
"inviterEmail": "john@example.com",
"expiresAt": "2024-11-08T10:30:00Z",
"isUsed": false,
"createdAt": "2024-11-01T10:30:00Z"
},
{
"_id": "6507a1b2c3d4e5f6a7b8c9d2",
"token": "pinv_xyz789ghi012",
"userId": "6507a1b2c3d4e5f6a7b8c9d1",
"profileId": "64f0a1b2c3d4e5f6a7b8c9d0",
"platform": "tiktok",
"inviterName": "John Doe",
"inviterEmail": "john@example.com",
"expiresAt": "2024-11-08T14:00:00Z",
"isUsed": true,
"createdAt": "2024-11-01T14:00:00Z"
}
]
}{
"error": "Unauthorized"
}Create a platform connection invite
Generate a secure invite link for someone to connect a social account to your profile. Perfect for client onboarding - they connect their account without accessing your Late account. Invites expire after 7 days.
API key authentication - use your Late API key as a Bearer token
In: header
Profile ID to connect the account to
Platform to connect
"facebook" | "instagram" | "linkedin" | "twitter" | "threads" | "tiktok" | "youtube" | "pinterest" | "reddit" | "bluesky" | "googlebusiness"Response Body
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/platform-invites" \ -H "Content-Type: application/json" \ -d '{ "profileId": "64f0a1b2c3d4e5f6a7b8c9d0", "platform": "instagram" }'{
"invite": {
"_id": "6507a1b2c3d4e5f6a7b8c9d0",
"token": "pinv_abc123def456",
"userId": "6507a1b2c3d4e5f6a7b8c9d1",
"profileId": "64f0a1b2c3d4e5f6a7b8c9d0",
"platform": "instagram",
"inviterName": "John Doe",
"inviterEmail": "john@example.com",
"expiresAt": "2024-11-08T10:30:00Z",
"isUsed": false,
"createdAt": "2024-11-01T10:30:00Z",
"inviteUrl": "https://getlate.dev/platform-invite/pinv_abc123def456"
}
}{
"error": "Unauthorized"
}Revoke a platform connection invite
Delete an unused platform invite. Only unused invites can be deleted.
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Invite ID to revoke
Response Body
application/json
application/json
curl -X DELETE "https://getlate.dev/api/v1/platform-invites?id=string"{
"message": "Platform invite revoked successfully"
}{
"error": "Unauthorized"
}