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

# Create User



## OpenAPI

````yaml /api-reference/openapi.json post /api/users/
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/users/:
    post:
      tags:
        - users
      summary: Create User
      operationId: create_user_api_users__post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UserCreate:
      properties:
        first_name:
          type: string
          title: First Name
        last_name:
          type: string
          title: Last Name
        email:
          type: string
          format: email
          title: Email
        password:
          anyOf:
            - type: string
            - type: 'null'
          title: Password
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Name
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        github_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Github Id
        github_login:
          anyOf:
            - type: string
            - type: 'null'
          title: Github Login
        github_access_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Github Access Token
        google_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Google Id
        google_access_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Google Access Token
        microsoft_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Microsoft Id
        microsoft_access_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Microsoft Access Token
        linkedin_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin Id
        linkedin_access_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin Access Token
      type: object
      required:
        - first_name
        - last_name
        - email
      title: UserCreate
      description: |-
        Schema for creating a new User
        inherits from UserBase, can add extra fields if needed.
    User:
      properties:
        first_name:
          type: string
          title: First Name
        last_name:
          type: string
          title: Last Name
        email:
          type: string
          format: email
          title: Email
        user_id:
          type: integer
          title: User Id
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        role:
          type: string
          title: Role
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Name
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Plan
        stripe_customer_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Stripe Customer Id
        mfa_enabled:
          type: boolean
          title: Mfa Enabled
          default: false
        onboarding_completed:
          type: boolean
          title: Onboarding Completed
          default: false
      type: object
      required:
        - first_name
        - last_name
        - email
        - user_id
        - role
      title: User
      description: |-
        Schema for reading a User (e.g GET requests).
        inculdes DB-generated fields like IDs, timestamps, etc.
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

## Related topics

- [Create Subscription](/api-reference/webhooks/create-subscription.md)
- [Create Session](/api-reference/adk/create-session.md)
- [Create Eval Set](/api-reference/evaluation/create-eval-set.md)
- [Create Session With Id](/api-reference/create-session-with-id.md)
