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

# Forgot Password

> Initiate password reset flow.

Generates a reset token and sends an email with reset instructions.
Always returns 200 regardless of whether the email exists (security - don't reveal user existence).

Args:
    request: FastAPI request object to get client IP.
    forgot_request: Email and account identifier.
    session: Database session.
    reset_service: Password reset service dependency.

Returns:
    Generic success message.



## OpenAPI

````yaml post /api/v1/auth/forgot-password
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/auth/forgot-password:
    post:
      tags:
        - auth
      summary: Forgot Password
      description: >-
        Initiate password reset flow.


        Generates a reset token and sends an email with reset instructions.

        Always returns 200 regardless of whether the email exists (security -
        don't reveal user existence).


        Args:
            request: FastAPI request object to get client IP.
            forgot_request: Email and account identifier.
            session: Database session.
            reset_service: Password reset service dependency.

        Returns:
            Generic success message.
      operationId: forgot_password_api_v1_auth_forgot_password_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForgotPasswordRequest'
        required: true
      responses:
        '200':
          description: Password reset email sent (or email not found - same response)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForgotPasswordResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ForgotPasswordRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: User's email address
        account:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Account
          description: >-
            Account identifier (slug or ID in XX#### format). Required in
            multi-tenant mode.
      type: object
      required:
        - email
      title: ForgotPasswordRequest
      description: Request body for forgot password.
    ForgotPasswordResponse:
      properties:
        message:
          type: string
          title: Message
          description: Success message (always returned regardless of whether email exists)
      type: object
      required:
        - message
      title: ForgotPasswordResponse
      description: Response for forgot password request.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````