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

# Check magic link status

> Poll to check if a magic link has been activated. Once activated, this endpoint returns authentication tokens. This enables cross-device login flows where the user initiates login on one device and completes it on another.



## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/magic_links/status
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/auth/{app_id}/magic_links/status:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    post:
      tags:
        - Magic Links
      summary: Check magic link status
      description: >-
        Poll to check if a magic link has been activated. Once activated, this
        endpoint returns authentication tokens. This enables cross-device login
        flows where the user initiates login on one device and completes it on
        another.
      operationId: checkMagicLinkStatus
      parameters: []
      responses:
        '200':
          description: magic link not yet activated
          content:
            application/json:
              schema:
                type: object
                properties:
                  access:
                    type: string
                    description: JWT access token
                  refresh:
                    type: string
                    description: JWT refresh token
                  csrf:
                    type: string
                    description: CSRF token
                  access_expires_at:
                    type: string
                    format: date-time
                  refresh_expires_at:
                    type: string
                    format: date-time
                  user_id:
                    type: string
                    description: App user ID
                  key_id:
                    type: string
                    description: App key ID
                  message:
                    type: string
                    example: ok
                description: >-
                  Magic link exists but hasn't been activated yet - continue
                  polling
        '404':
          description: magic link not found or expired
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Not found
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````