> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1accountauthlink

> Redeems a one-time link from the confirmation page and opens a session. The token is consumed in the same transaction. Requires Content-Type application/json and a same-origin request.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/account/auth/link
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/account/auth/link:
    post:
      tags:
        - account
      description: >-
        Redeems a one-time link from the confirmation page and opens a session.
        The token is consumed in the same transaction. Requires Content-Type
        application/json and a same-origin request.
      operationId: accountCompleteMagicLink
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkRedeemInput'
      responses:
        '200':
          description: Signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountSignIn'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '415':
          $ref: '#/components/responses/Problem'
      security: []
components:
  schemas:
    MagicLinkRedeemInput:
      type: object
      required:
        - token
      properties:
        token:
          type: string
          description: The token from the link the bot delivered.
    AccountSignIn:
      type: object
      required:
        - customer
        - expiresAt
      properties:
        customer:
          $ref: '#/components/schemas/AccountCustomer'
        expiresAt:
          type: string
          format: date-time
    AccountCustomer:
      type: object
      required:
        - id
        - locale
        - timezone
        - status
      properties:
        id:
          type: string
          format: uuid
        locale:
          type: string
          enum:
            - ru
            - en
        timezone:
          type: string
        status:
          type: string
          enum:
            - active
            - suspended
            - deleted
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.