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

# Create a group

> Creates a team or pickup group owned by your account's owner and belonging to your organization. Send sessions to it right away with `group` on `POST /v1/sessions`.



## OpenAPI

````yaml /openapi.json post /v1/groups
openapi: 3.1.0
info:
  title: Hooper API
  version: 1.0.0
  description: >-
    Submit basketball game video and receive highlights, shots and per-player
    box scores.


    All endpoints require `Authorization: Bearer hk_prod_…`, except `GET
    /v1/pricing`, which is public. Money fields are integer **cents**.
    Timestamps are Unix seconds. Every list — top-level or embedded — is `{
    object: "list", data, has_more, total_count }`.
servers:
  - url: https://zeus.hooper.gg
    description: Production (accepts hk_prod_ keys)
security:
  - apiKey: []
tags:
  - name: Uploads
    description: Resumable video uploads to Hooper storage.
  - name: Sessions
    description: >-
      A session is one submitted game and everything the pipeline produced for
      it.
  - name: Groups
    description: The teams and groups in the Hooper app that your sessions are sent to.
  - name: Billing
    description: Prepaid credits, metered per second of video.
  - name: Webhooks
    description: Signed HTTP callbacks when a session finishes.
  - name: Events
    description: The log of every event Hooper has emitted for your organization.
paths:
  /v1/groups:
    post:
      tags:
        - Groups
      summary: Create a group
      description: >-
        Creates a team or pickup group owned by your account's owner and
        belonging to your organization. Send sessions to it right away with
        `group` on `POST /v1/sessions`.
      operationId: createGroup
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGroupRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: '`idempotency_key_in_progress`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Any string up to 255 characters. Replaying the same key with the same
        body within 24h returns the original response; a different body returns
        400 `idempotency_key_reused`. Without a key, a retried request creates a
        second object.
      schema:
        type: string
  schemas:
    CreateGroupRequest:
      type: object
      required:
        - name
      additionalProperties: false
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Leading and trailing spaces are trimmed.
          example: Acme Varsity
        type:
          type: string
          enum:
            - team
            - pickup
          default: team
          description: Can't be changed later.
        privacy:
          type: string
          enum:
            - public
            - private
            - hidden
          description: >-
            Defaults to `private` for a team and `public` for a pickup group.
            Who can find and join it in the Hooper app. `public`: anyone can
            find and join. `private`: anyone can find it; joining needs an
            invite. `hidden`: it doesn't show up in search; only people with an
            invite can see or join it.
        description:
          type: string
          maxLength: 500
        level:
          type: string
          enum:
            - recreational
            - intramural
            - youth
            - high-school
            - college
            - semi-pro
            - pro
          description: How competitive the team is.
        city:
          type: string
          maxLength: 100
        state:
          type: string
          maxLength: 100
        country:
          type: string
          maxLength: 100
        metadata:
          type: object
          maxProperties: 20
          additionalProperties:
            type: string
            maxLength: 500
          description: >-
            Up to 20 key/values of your own (keys up to 40 characters), returned
            on the group.
          example:
            team_id: lg-t-12
    Group:
      type: object
      properties:
        id:
          type: string
          example: grp_412
        object:
          type: string
          const: group
        created:
          type: integer
          description: Unix seconds.
        name:
          type: string
          example: Acme Varsity
        type:
          type: string
          description: Groups you create or link are `team` or `pickup`.
          example: team
        privacy:
          type: string
          enum:
            - public
            - private
            - hidden
          description: >-
            Who can find and join it in the Hooper app. `public`: anyone can
            find and join. `private`: anyone can find it; joining needs an
            invite. `hidden`: it doesn't show up in search; only people with an
            invite can see or join it.
        description:
          type: string
          nullable: true
        level:
          type: string
          nullable: true
          enum:
            - recreational
            - intramural
            - youth
            - high-school
            - college
            - semi-pro
            - pro
          description: How competitive the team is.
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Your own key/values; `{}` when there are none.
          example:
            team_id: lg-t-12
        linked:
          type: boolean
          description: >-
            `true` when the group belongs to your organization and accepts
            sessions. `false` for a group you can link (`POST
            /v1/groups/{id}/link`).
        default:
          type: boolean
          description: >-
            `true` for your organization's own group, where a session sent
            without `group` lands. It can't be updated, unlinked or deleted.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - insufficient_credits
                - rate_limit_error
                - api_error
            code:
              type: string
              example: parameter_invalid
            message:
              type: string
            param:
              type: string
              description: The request field the error refers to, when there is one.
              example: source.url
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or wrong-environment API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The API is turned off for your organization (`feature_disabled`)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: More than 60 requests per minute for this key
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: hk_prod_…
      description: >-
        API key issued by Hooper for your organization. There is one
        environment, production.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.