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

# Check reset SMS

> Validates an SMS code and generates a JWT token for password reset.



## OpenAPI

````yaml api-reference/openapi.json post /generate-password-reset-token
openapi: 3.0.0
info:
  title: Cati Main Server API
  version: 1.0.0
  description: >-
    API for managing Cati assistant users, app users, contacts, media,
    notifications and preferences.
servers:
  - url: /
security: []
paths:
  /generate-password-reset-token:
    post:
      tags:
        - Authentication & Users
      summary: Generate password reset token
      description: Validates an SMS code and generates a JWT token for password reset.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateResetTokenRequest'
      responses:
        '200':
          description: Reset token generated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResetTokenResponse'
        '400':
          description: Invalid SMS code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GenerateResetTokenRequest:
      type: object
      required:
        - phone
        - code
      properties:
        phone:
          type: string
          example: '+34612345678'
        code:
          type: string
          description: SMS verification code.
          example: '123456'
    GenerateResetTokenResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessResponse'
        - type: object
          properties:
            token:
              type: string
              description: Password reset JWT token.
              example: eyJ...
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Operation completed successfully

````