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

# Create an actions group

> Creates the actions group of a brand × category × country triplet. The triplet must be tracked by a Search project of the workspace, and a workspace has at most one group per triplet.



## OpenAPI

````yaml https://openapi.shareofmodel.ai/swagger.json post /v1/organizations/{organization_id}/workspaces/{workspace_id}/recommendation/actions-groups
openapi: 3.0.3
info:
  title: Share Of Model API
  version: v1
  description: >-
    ## Model Context Protocol (MCP)


    In addition to this REST API, Share of Model exposes a **Model Context
    Protocol** server that lets AI assistants (Claude Desktop, Claude Code, MCP
    Inspector, custom agents…) call our endpoints directly as tools. Any
    MCP-compatible client can interact with Share of Model without writing
    custom integration code — connect once with your usual login and start
    asking the assistant to query the data for you.


    ### Connecting from Claude Desktop


    Open **Settings → Connectors**, scroll to the bottom and click **Add custom
    connector**, then paste `https://mcp.shareofmodel.ai/mcp/`. A browser window
    opens for you to log in with your Share of Model account (same login as the
    web app), and the assistant gains access to the tools.


    ### Connecting from Claude Code


    ```bash

    claude mcp add --transport http share-of-model
    https://mcp.shareofmodel.ai/mcp/

    ```


    The first time you call a tool, Claude Code opens your browser to complete
    the login.


    ### Connecting from MCP Inspector


    ```bash

    npx @modelcontextprotocol/inspector

    ```


    In the Inspector UI, pick **Streamable HTTP** as transport, paste
    `https://mcp.shareofmodel.ai/mcp/`, and click **Connect**. The first
    connection prompts you to log in.


    ### Available tools


    Every read-only (`GET`) endpoint of this specification and of the Search API
    specification is exposed as an MCP tool, except account administration (API
    keys, platform integrations and accounts, user roles, favourites, SSO and
    SCIM).


    Write endpoints are exposed only when they are marked for agents: creating
    and pricing brand analyses, Search analyses and GEO audits, creating
    personas, and managing asset evaluations. Write tools act with the role of
    the signed-in user, so creating requires the Organization Editor or Owner
    role, or Workspace Editor in the target workspace. Before creating an
    analysis or a GEO audit, the assistant shows the full setup and its cost and
    waits for an explicit confirmation.


    ### Example prompts


    Once connected, try asking your assistant things like:


    - _"List the workspaces I have access to."_

    - _"Show me the latest searches in workspace X."_

    - _"Compare the share of model between brand A and brand B over the last 30
    days."_

    - _"Set up a brand analysis for brand A in France."_


    For more details on the protocol itself, see the [Model Context Protocol
    specification](https://modelcontextprotocol.io/).
servers:
  - description: Production API
    url: https://api.shareofmodel.ai/
  - description: Development API
    url: https://api.dev.shareofmodel.ai/
security: []
tags:
  - name: Auth
    description: Endpoints needed for API authentication.
  - name: Organizations
    description: Endpoints related to organizations, to list all available organizations.
  - name: Workspaces
    description: Endpoints related to workspaces, to list all available workspaces.
  - name: Analyses
    description: Endpoints related to analyses and analyses management.
  - name: Asset Evaluations
    description: Endpoints related to assets and asset evaluations.
  - name: Brand Catalog
    description: Endpoints related to general brand information.
  - name: Content Briefs
    description: Endpoints related to content briefs generation and optimisation.
  - name: Metrics
    description: >+
      Endpoints related to brand metrics.


      **LEXICON**



      **Brand Awareness**: What opinion the LLMs have concerning specific
      brands, related to certain categories.



      **Brand Perception**: The general sentiment of the LLMs towards a brand,

      based on the pros and cons they mention.

paths:
  /v1/organizations/{organization_id}/workspaces/{workspace_id}/recommendation/actions-groups:
    post:
      tags:
        - Actions Groups
      summary: Create an actions group
      description: >-
        Creates the actions group of a brand × category × country triplet. The
        triplet must be tracked by a Search project of the workspace, and a
        workspace has at most one group per triplet.
      operationId: create_actions_group
      parameters:
        - in: path
          name: organization_id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying the organization.
          required: true
        - in: path
          name: workspace_id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying the workspace.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionsGroupCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ActionsGroupCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ActionsGroupCreate'
          '*/*':
            schema:
              $ref: '#/components/schemas/ActionsGroupCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionsGroupResponse'
          description: Actions group created
        '400':
          description: >-
            Invalid body, or no Search project of the workspace tracks the
            triplet
        '401':
          description: Authentication credentials were not provided or are invalid
        '403':
          description: You do not have permission to perform this action
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionsGroupConflict'
          description: An actions group already exists for this triplet; it is returned
        '503':
          description: Search could not be reached; retry later
      security:
        - Bearer: []
components:
  schemas:
    ActionsGroupCreate:
      type: object
      properties:
        brand:
          type: string
          description: Brand, exactly as in the Search project
          maxLength: 255
        category:
          type: string
          description: Category, exactly as in the Search project
          maxLength: 255
        country:
          type: string
          description: Country, exactly as in the Search project
          maxLength: 255
      required:
        - brand
        - category
        - country
    ActionsGroupResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Actions group UUID
        organization_id:
          type: string
          format: uuid
          description: Organization UUID
        workspace_id:
          type: string
          format: uuid
          description: Workspace UUID
        brand:
          type: string
          description: Brand of the triplet
        category:
          type: string
          description: Category of the triplet
        country:
          type: string
          description: Country of the triplet
        created_by:
          type: string
          format: uuid
          nullable: true
          description: UUID of the user who created the group
        created_at:
          type: string
          format: date-time
          description: Creation time
        updated_at:
          type: string
          format: date-time
          description: Last update time
      required:
        - brand
        - category
        - country
        - created_at
        - created_by
        - id
        - organization_id
        - updated_at
        - workspace_id
    ActionsGroupConflict:
      type: object
      properties:
        detail:
          type: string
          description: Error message
        actions_group:
          allOf:
            - $ref: '#/components/schemas/ActionsGroupResponse'
          description: The existing actions group of the triplet
      required:
        - actions_group
        - detail
  securitySchemes:
    Bearer:
      type: apiKey
      in: header
      name: Authorization

````

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