Register your app
In the web app, go to Settings → Developers and create an app. Choose:- Public for apps that can’t keep a secret (extensions, desktop, mobile, single-page apps). They authenticate with PKCE alone.
- Confidential for apps with a server that can keep a client secret.
Authorization code flow with PKCE
1
Send the user to Linkvite
Create a PKCE verifier and its Add
S256 challenge, plus a random state. Store both, then redirect to the authorization endpoint:prompt=consent to always show the consent screen.2
Handle the redirect
After the user selects Allow, Linkvite redirects to your
redirect_uri with code and state. Check that state matches what you stored.3
Exchange the code for tokens
4
Call the API
Send the access token as
Authorization: Bearer <access_token>.Refresh tokens
Access tokens are short-lived (expires_in, in seconds). Get a new one with the refresh token:
Sign out
Revoke the refresh token (or the access token) when the user signs out:Resource indicators
Tokens are bound to one resource (RFC 8707): the REST API (https://api.linkvite.io) or the MCP server (https://api.linkvite.io/mcp). Pass resource on the authorization and token requests to choose; without it, the token is for the REST API.