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

# Create Identifier Groups

> Create an identifier group in the tenant the caller is acting in and return it under `assets_group`. `parent_group_id` nests the group under an existing group that has no parent itself, so only one level of nesting is possible. The `corporate_identities` group type cannot be created with this operation. Requires write access to the tenant's identifier groups.

&#x20;Required API key permission: **Write Tenant**


## OpenAPI

````yaml firework-v2-openapi post /firework/v2/assets/groups/
openapi: 3.0.1
info:
  description: >

    Manage and access Firework resources.


    Requests are authenticated with API tokens, which are obtained using an API
    key:


    1. Generate an API key from the [Profile
    page](https://app.flare.io/#/profile).

    2. Send a `POST` request to `https://api.flare.io/tokens/generate` with the
    `Authorization: <api-key>` header to get an API token. API tokens expire
    after 1 hour.

    3. Call the API endpoints with the `Authorization: Bearer <api-token>`
    header.


    See [Authentication](https://api.docs.flare.io/concepts/authentication) for
    details.
  title: Firework API
  version: v2
servers:
  - url: https://api.flare.io/
security:
  - BearerAuth: []
tags:
  - description: >-
      The authenticated user, its API keys, organizations, tenants, onboarding
      and usage.
    name: Account
  - description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
    name: Events
  - description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
    name: Identifiers
  - description: Report groups, reports, their sections, schedules and delivery channels.
    name: Reports
paths:
  /firework/v2/assets/groups/:
    post:
      tags:
        - Identifiers
      summary: Create an identifier group
      description: >-
        Create an identifier group in the tenant the caller is acting in and
        return it under `assets_group`. `parent_group_id` nests the group under
        an existing group that has no parent itself, so only one level of
        nesting is possible. The `corporate_identities` group type cannot be
        created with this operation. Requires write access to the tenant's
        identifier groups.
      operationId: post_assets_groups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdentifierGroup'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/post_assets_groups_200_response'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            Invalid body: `EMPTY_GROUP_NAME`, `INVALID_PARENT_GROUP` (unknown
            parent group), `INVALID_ADD_GROUP_TO_GROUP` (the parent group is
            already nested) or `RESTRICTED_GROUP_TYPE`.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: The caller lacks the required permission (`FORBIDDEN`).
components:
  schemas:
    IdentifierGroup:
      properties:
        id:
          description: ID of the identifier group.
          type: integer
        tenant_id:
          description: ID of the tenant that owns the identifier group.
          type: integer
        feed_id:
          description: ID of the feed holding the events of the group.
          type: integer
        feed_owner_id:
          description: ID of the feed owner linking the group to its feed.
          type: integer
        name:
          description: Display name of the identifier group.
          type: string
        urn:
          description: The uniform resource name of the identifier group.
          type: string
      type: object
    post_assets_groups_200_response:
      properties:
        assets_group:
          $ref: '#/components/schemas/IdentifierGroup'
      type: object
    HttpError:
      properties:
        message:
          description: Human-readable description of the error.
          type: string
        code:
          description: Machine-readable error code.
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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