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

# Create user

> Creates an end user ahead of use, so their group, display name and tool credentials are in place before their first session or scheduled workflow.

Creating explicitly is optional: minting a token (or a chat call) with an unseen `user_id` provisions the user automatically. A user created here is exactly what a later mint with the same id resolves to.

Requires your organization API key, from your backend.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/users
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/users:
    post:
      tags:
        - Users & Groups
      summary: Create user
      description: >-
        Creates an end user ahead of use, so their group, display name and tool
        credentials are in place before their first session or scheduled
        workflow.


        Creating explicitly is optional: minting a token (or a chat call) with
        an unseen `user_id` provisions the user automatically. A user created
        here is exactly what a later mint with the same id resolves to.


        Requires your organization API key, from your backend.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
              properties:
                id:
                  type: string
                  example: user_4821
                  description: Your stable id for the end user.
                name:
                  type: string
                  example: Ada Lovelace
                group_id:
                  type: string
                  example: grp_84f20c19
                  description: >-
                    The group the user belongs to. Omitted: the organization's
                    Default group. An unseen id provisions the group.
                tools_auth:
                  type: object
                  example:
                    8d3b1a75-6c02-4e59-b84f-27a9d5e10c63:
                      credentials:
                        token: the end user's CRM token
                  description: >-
                    Per-provider credentials to store for the user, same shape
                    as the mint.
      responses:
        '201':
          description: The created user
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                        nullable: true
                  group_id:
                    type: string
                    nullable: true
                    description: The group the user was created in, when one was sent.
                  providers:
                    type: array
                    items:
                      type: string
                    description: Provider ids whose credentials were stored.
        '400':
          description: Invalid body
        '403':
          description: Not an API key
        '409':
          description: >-
            A user with this id already exists (update them with PATCH
            /v1/users/{userId})
        '500':
          description: SESSION_CRED_KEY not configured while tools_auth was sent
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````