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

# Validate Login

> Validates the magic link token and sets a JWT cookie if successful.

Validates the magic link token and sets a JWT cookie if successful.


## OpenAPI

````yaml POST /api/v1/validate
openapi: 3.1.0
info:
  title: WaveCentric AI LooP API
  description: >-
    Comprehensive API for managing omnichannel logistics, inquiries, tasks, and
    data lake operations.
  version: 1.0.0
servers:
  - url: https://ai-loop.alpeadria.com
    description: Production server
security: []
paths:
  /api/v1/validate:
    post:
      tags:
        - Authentication
      summary: Validate magic link
      description: Validates the magic link token and sets a JWT cookie if successful.
      operationId: post-validate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  example: user@example.com
                token:
                  type: string
                  example: abc123token
              required:
                - email
                - token
      responses:
        '200':
          description: Login successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  redirectPath:
                    type: string
              examples:
                success:
                  value:
                    message: Login successful!
                    redirectPath: /ai-loop
        '401':
          description: Invalid token or email.

````