> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyra.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify API key or OAuth token

> Validates a Lyra API key or OAuth access token and returns associated user and org identifiers.



## OpenAPI

````yaml https://app.lyra.so/openapi.json post /auth
openapi: 3.0.0
info:
  title: Lyra API
  version: '1.0'
servers:
  - url: https://app.lyra.so/api/v1
    description: Production server
  - url: http://localhost:3000/api/v1
    description: Development server
security:
  - LyraApiKey: []
  - OAuth2: []
tags:
  - name: Authentication
    description: Verify API keys and OAuth tokens
  - name: Meetings
    description: Create and manage Lyra meetings
  - name: Webhooks
    description: Manage webhook subscriptions
paths:
  /auth:
    post:
      tags:
        - Authentication
      summary: Verify API key or OAuth token
      description: >-
        Validates a Lyra API key or OAuth access token and returns associated
        user and org identifiers.
      responses:
        '200':
          description: Token is valid
          content:
            application/json:
              schema:
                type: object
                required:
                  - valid
                  - userId
                  - orgId
                properties:
                  valid:
                    type: boolean
                    example: true
                  userId:
                    type: string
                    example: user_123
                  orgId:
                    type: string
                    example: org_123
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                type: object
                required:
                  - valid
                  - error
                properties:
                  valid:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing API key
        '500':
          description: Failed to verify token
          content:
            application/json:
              schema:
                type: object
                required:
                  - valid
                  - error
                properties:
                  valid:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to verify token
      security:
        - LyraApiKey: []
        - OAuth2: []
components:
  securitySchemes:
    LyraApiKey:
      type: http
      scheme: bearer
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.lyra.so/api/v1/oauth/authorize
          tokenUrl: https://app.lyra.so/api/v1/oauth/token
          scopes: {}

````