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

# Create User

> Create a new user in your project.

Register a new user to start tracking their memories and sessions. Each user is identified
by a unique custom_user_id that you provide from your application.

**Body Parameters:**
- `custom_user_id` (str): Your unique identifier for this user
- `metadata` (Dict[str, Any]): Optional JSON metadata to attach (e.g., name, email, preferences)

**Returns:**
- `user` (UserInfo): Created user object with custom_user_id, metadata, and timestamps



## OpenAPI

````yaml https://api.recallrai.com/api/openapi.json post /api/v1/users
openapi: 3.1.0
info:
  title: api-backend
  description: This powers the Recallr AI API Backend
  version: 0.1.0
servers:
  - url: https://api.recallrai.com
    description: Production server
security: []
paths:
  /api/v1/users:
    post:
      tags:
        - Users
      summary: Create User
      description: >-
        Create a new user in your project.


        Register a new user to start tracking their memories and sessions. Each
        user is identified

        by a unique custom_user_id that you provide from your application.


        **Body Parameters:**

        - `custom_user_id` (str): Your unique identifier for this user

        - `metadata` (Dict[str, Any]): Optional JSON metadata to attach (e.g.,
        name, email, preferences)


        **Returns:**

        - `user` (UserInfo): Created user object with custom_user_id, metadata,
        and timestamps
      operationId: create_user_api_v1_users_post
      parameters:
        - name: X-Recallr-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
            title: X-Recallr-Project-Id
        - name: X-Recallr-Api-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Recallr-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserRequest'
      responses:
        '201':
          description: User created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateUserResponse'
        '401':
          description: Authentication required
        '409':
          description: User already exists
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    CreateUserRequest:
      properties:
        custom_user_id:
          type: string
          title: Custom User Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        merge_conflict_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Merge Conflict Enabled
      type: object
      required:
        - custom_user_id
        - metadata
      title: CreateUserRequest
    CreateUserResponse:
      properties:
        user:
          $ref: '#/components/schemas/UserInfo'
      type: object
      required:
        - user
      title: CreateUserResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserInfo:
      properties:
        custom_user_id:
          type: string
          title: Custom User Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        merge_conflict_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Merge Conflict Enabled
        created_at:
          type: string
          format: date-time
          title: Created At
        last_active_at:
          type: string
          format: date-time
          title: Last Active At
      type: object
      required:
        - custom_user_id
        - metadata
        - merge_conflict_enabled
        - created_at
        - last_active_at
      title: UserInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````