latestOpenAPI 3.1.0Proprietary2026-08-1095216168.4 KB

db81a447bba9

Account

Link external account

Links another identity provider (Google / GitHub / Microsoft) to the current user. Requires a fresh IdP intent for the source being linked. After linking the user can sign in via either provider.

post/account/link

Request body

idstring required
source'google' | 'github' | 'microsoft'
tokenstring required

Response

Account linked. Includes a new session when the intent was verified.

division_idinteger
division_namestring
linked_accountsIdentityProvider[] nullable
tenant_idinteger
tenant_namestring
verifiedboolean required
workspace'joined' | 'join_requested' | 'awaiting_invitation'

Example response

{
  "division_id": 7261844974723780000,
  "division_name": "production",
  "session": {
    "email": "alice@laserdata.com"
  },
  "tenant_id": 7261845022003200000,
  "tenant_name": "acme-corp"
}