Skip to main content

Overview

Lyra implements the OAuth 2.0 Authorization Code flow. This lets third-party applications request permission from Lyra users and receive scoped access tokens to call the API on their behalf. Use OAuth when you’re building an integration that other Lyra users will authorize — for example, a scheduling tool that creates Lyra meetings for its customers.
If you only need to access your own workspace programmatically, an API key is simpler and provides full access without scopes.

Create an OAuth Application

1

Open OAuth Settings

Navigate to Settings → Developers → OAuth Clients in your Lyra dashboard.
OAuth Clients settings page
2

Register Your Application

Click Create OAuth Client and fill in the required fields:
Create OAuth Client dialog
3

Save Your Credentials

After creating the application, you’ll receive a Client ID and Client Secret.
The Client Secret is only shown once. Store it securely — Lyra only keeps a hash of the secret.

Available Scopes

Scopes control what your application can do on behalf of the user. Request only the scopes you need.

Authorization Flow

The OAuth flow has three steps: redirect the user, receive the authorization code, then exchange it for tokens.

1. Redirect the User to Lyra

Send the user to the Lyra authorization page with your application’s parameters:
The user will see a consent screen showing your application name and the requested permissions.
OAuth consent screen

2. Receive the Authorization Code

After the user approves, Lyra redirects to your redirect_uri with an authorization code:
If the user denies the request, the redirect includes an error:
Authorization codes expire after 10 minutes and can only be used once.

3. Exchange the Code for Tokens

Make a server-side POST request to the token endpoint to exchange the authorization code for an access token and refresh token.
The response includes both tokens:

Using OAuth Tokens

Pass the access token as a Bearer token in the Authorization header, just like an API key:
If the token lacks a required scope, you’ll receive a 403 response:

Refreshing Tokens

Access tokens expire after 1 hour. Use the refresh token to obtain a new access token without requiring the user to re-authorize.
The response has the same format as the initial token exchange, including a new refresh token:
Lyra uses refresh token rotation — each refresh token can only be used once. Always store the new refresh token from the response, as the previous one is immediately revoked.

Token Lifetimes

Error Responses

The token endpoint returns standard OAuth error codes: