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

# Create group

> Create a new group under the authenticated partner. Requires a partner API token.



## OpenAPI

````yaml post /groups
openapi: 3.1.0
info:
  title: CookieChimp API
  description: API for CookieChimp.com
  version: 1.0.1
servers:
  - url: https://cookiechimp.com/api/v1
security:
  - authorization: []
paths:
  /groups:
    post:
      tags:
        - Groups
      summary: Create group
      description: >-
        Create a new group under the authenticated partner. Requires a partner
        API token.
      operationId: createGroup
      requestBody:
        description: Group to create
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupCreate'
      responses:
        '201':
          description: Created group
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
components:
  schemas:
    GroupCreate:
      type: object
      properties:
        name:
          type: string
          description: Name of the group
        external_id:
          type: string
          description: External ID set by the partner
        max_pageviews_per_month:
          type: integer
          description: Maximum number of pageviews per month
      required:
        - name
        - external_id
        - max_pageviews_per_month
    Group:
      type: object
      properties:
        id:
          type: string
          readOnly: true
          description: Unique identifier for the group
      allOf:
        - $ref: '#/components/schemas/GroupCreate'
      example:
        id: abc123
        name: Example Ltd
        external_id: ABC_123
        partner: partner_one
        max_pageviews_per_month: 500000
  securitySchemes:
    authorization:
      type: http
      scheme: bearer
      description: API token obtained from the login endpoint or the dashboard

````