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

# Auth Start

> Start authentication: verify TEE signature, then send OTP to email.



## OpenAPI

````yaml /openapi.json post /api/v1/auth/start
openapi: 3.1.0
info:
  title: HEVN API
  description: Backend API for HEVN mobile neobank
  version: 0.1.2
servers:
  - url: https://api.hevn.finance
    description: Production
security: []
paths:
  /api/v1/auth/start:
    post:
      tags:
        - auth
        - auth
      summary: Auth Start
      description: 'Start authentication: verify TEE signature, then send OTP to email.'
      operationId: auth_start_api_v1_auth_start_post
      parameters:
        - name: device-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Device-Id
        - name: user-agent
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: User-Agent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthStartRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthStartResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AuthStartRequest:
      properties:
        email:
          type: string
          title: Email
          description: User email address
      type: object
      required:
        - email
      title: AuthStartRequest
      description: Request schema for starting authentication.
    AuthStartResponse:
      properties:
        sessionKey:
          type: string
          title: Sessionkey
          description: Session key for OTP verification
        status:
          type: string
          title: Status
          description: Auth session status
          default: pending
        authMethods:
          items:
            $ref: '#/components/schemas/AuthMethod'
          type: array
          title: Authmethods
          description: Required auth methods
      type: object
      required:
        - sessionKey
      title: AuthStartResponse
      description: Response schema for auth start.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuthMethod:
      type: string
      enum:
        - email_otp
        - totp
        - signed_jwt
      title: AuthMethod
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````