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

> Creates a group ahead of use, so its monthly spend cap is in place before the first user or session references it.

Creating explicitly is optional: minting a token or updating a user with an unseen `group_id` provisions the group automatically (with the default $5 cap). A later mint sending this `id` matches the group created here.

Requires your organization API key, from your backend.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/groups
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/groups:
    post:
      tags:
        - Users & Groups
      summary: Create group
      description: >-
        Creates a group ahead of use, so its monthly spend cap is in place
        before the first user or session references it.


        Creating explicitly is optional: minting a token or updating a user with
        an unseen `group_id` provisions the group automatically (with the
        default $5 cap). A later mint sending this `id` matches the group
        created here.


        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: grp_84f20c19
                  description: Your stable id for the group.
                name:
                  type: string
                  example: Acme — production
                  description: Display name. Defaults to the id.
                monthly_limit:
                  type: number
                  example: 250
                  description: Monthly spend cap in USD. Defaults to $5.
      responses:
        '201':
          description: The created group
          content:
            application/json:
              schema:
                type: object
                properties:
                  group:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      monthly_limit:
                        type: number
                        description: Monthly spend cap in USD.
                      month_spend:
                        type: number
                      limit_remaining:
                        type: number
        '400':
          description: Invalid body
        '403':
          description: Not an API key
        '409':
          description: >-
            A group with this id already exists (update it with PATCH
            /v1/groups/{groupId})
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````