Auth

Link email/password to anonymous account

Links the current anonymous device to an email/password account. If the email already exists on another device, bookmarks and folders are merged to that device and the current device is deactivated (user receives new tokens for the existing account). After linking, the user can login from any device via /v1/auth/login-email.

post/v1/auth/link-email

Request

  • Base URL: http://localhost:4000
  • URL: http://localhost:4000/v1/auth/link-email
  • Auth: HTTP bearer

Request body

emailstring email required

Email address to link

passwordstring required

Password (min 6 characters)

namestring

Optional display name (defaults to email prefix)

Response

Email linked (or account merged)

successboolean
messagestring
authProvider'email'
mergedboolean

True if data was merged into an existing email account

accessTokenstring

New access token (only present if merged)

refreshTokenstring

New refresh token (only present if merged)

expiresIninteger

Token TTL in seconds (only present if merged)

Changes

No recorded changes to this operation across all 2 revisions of this API.