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

# Login

> Authenticate a user by email and password, then set httponly access and refresh cookies. Rate-limited per email; returns the current user, workspaces, and role.



## OpenAPI

````yaml /openapi.json post /api/v1/auth/login
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/auth/login:
    post:
      tags:
        - auth
      summary: Login
      description: >-
        Authenticate a user by email and password, then set httponly access and
        refresh cookies. Rate-limited per email; returns the current user,
        workspaces, and role.
      operationId: login_api_v1_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    LoginBody:
      properties:
        email:
          format: email
          title: Email
          type: string
        password:
          title: Password
          type: string
      required:
        - email
        - password
      title: LoginBody
      type: object
    MeResponse:
      properties:
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        current_tos_version:
          default: '2026-06-01'
          title: Current Tos Version
          type: string
        current_workspace_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Current Workspace Id
        deletion_scheduled_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Deletion Scheduled At
        email:
          title: Email
          type: string
        email_verified:
          default: false
          title: Email Verified
          type: boolean
        full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Name
        has_password:
          default: false
          title: Has Password
          type: boolean
        id:
          format: uuid
          title: Id
          type: string
        last_login_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Login At
        linked_providers:
          default: []
          items:
            type: string
          title: Linked Providers
          type: array
        onboarding_completed:
          default: false
          title: Onboarding Completed
          type: boolean
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        tos_accepted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Tos Accepted At
        tos_enforcement_date:
          default: '2026-06-15'
          title: Tos Enforcement Date
          type: string
        tos_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Tos Version
        workspaces:
          items:
            additionalProperties: true
            type: object
          title: Workspaces
          type: array
      required:
        - id
        - email
        - full_name
        - avatar_url
        - last_login_at
        - workspaces
        - current_workspace_id
        - role
      title: MeResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````