> ## 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.

# Send SMS code

> Sends an SMS verification code to a phone number. Used during app user registration to check if the number is already registered.



## OpenAPI

````yaml api-reference/openapi.json post /send-sms
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:
  /send-sms:
    post:
      tags:
        - Authentication & Users
      summary: Send SMS verification for new user registration
      description: >-
        Sends an SMS verification code to a phone number. Used during app user
        registration to check if the number is already registered.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendSMSRequest'
      responses:
        '200':
          description: SMS sent successfully or user already exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendSMSResponse'
        '500':
          description: Error sending SMS or database connection failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SendSMSRequest:
      type: object
      required:
        - phone
      properties:
        phone:
          type: string
          example: '+34612345678'
    SendSMSResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessResponse'
        - type: object
          properties:
            message:
              type: string
              example: User with this phone number already exists
    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

````