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

# Verify magic link token and return auth tokens



## OpenAPI

````yaml /openapi.json post /auth/magic-link/verify
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /auth/magic-link/verify:
    post:
      tags:
        - Authentication
      summary: Verify magic link token and return auth tokens
      operationId: AuthController_verifyMagicLink
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkVerifyDto'
      responses:
        '200':
          description: Sign-in successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponseDto'
        '400':
          description: Invalid or expired magic link
components:
  schemas:
    MagicLinkVerifyDto:
      type: object
      properties:
        token:
          type: string
          example: magic-link-token-uuid
      required:
        - token
    AuthResponseDto:
      type: object
      properties:
        access_token:
          type: string
        refresh_token:
          type: string
        user:
          type: object
          example:
            id: uuid
            email: user@example.com
            roles:
              - user
            firstName: John
            lastName: Doe
            image: https://example.com/image.jpg
      required:
        - access_token
        - refresh_token
        - user

````