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

# Get An Opportunity's Tags

> The tags on one warm intro

An opportunity is a **path**: a connector and a prospect. Its tags belong to
that pair, so they stay with the path between the two people whenever Clustr
recalculates the opportunity.

This is where an intro's status lives: Intro tags, the `path` field.

> [!NOTE]
>
> **The pair goes in the query string.** A LinkedIn public identifier can carry
> characters a URL path segment would have to escape, and two of them in one
> path make an ambiguous route.

```bash cURL theme={null}
curl "https://api.clustr-ai.com/api/public/record-tags/path?client_linkedin_id=nicdelaye&prospect_linkedin_id=jane-smith" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "tags": [
      {
        "clustr_tag_id": "tag_0k57sn6zset8ps77pmx8d30xfc",
        "clustr_group_id": "tgrp_nxpeqa83he48rcpj09cjm6vd6x",
        "id": "8f652e61-edfa-4a8c-8763-cc4902dd386b",
        "group_id": "2b7c9d10-4e5f-4a61-9c22-8d3f1a7b0e44",
        "name": "Contacted",
        "color": "#3B82F6"
      }
    ]
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "client_linkedin_id and prospect_linkedin_id are required", "code": "BAD_REQUEST" }
}
```


## OpenAPI

````yaml GET /record-tags/path
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /record-tags/path:
    parameters:
      - name: client_linkedin_id
        in: query
        required: true
        schema:
          type: string
        description: The connector's LinkedIn public identifier.
      - name: prospect_linkedin_id
        in: query
        required: true
        schema:
          type: string
        description: The prospect's LinkedIn public identifier.
    get:
      tags:
        - Tags
      summary: Get An Opportunity's Tags
      description: >-
        Every tag on one warm intro. The pair is in the query string because a
        LinkedIn identifier can carry characters a path segment would escape.
      operationId: getPathRecordTags
      responses:
        '200':
          description: The opportunity's tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      tags:
                        type: array
                        description: >-
                          The tags on the path: `id`, `group_id`, `name`,
                          `color` and `closes`. A tag

                          with `closes: true` closes the intro.
                        items:
                          $ref: '#/components/schemas/Tag'
        '400':
          description: client_linkedin_id and prospect_linkedin_id are required
        '401':
          description: Invalid or missing API key
components:
  schemas:
    Tag:
      type: object
      description: One term inside a tag field.
      required:
        - id
        - group_id
        - name
        - color
      properties:
        clustr_tag_id:
          type: string
          description: >-
            The tag's Clustr ID, for example `tag_275zx5fj2f0nka3hnyk651zr1e`.
            Use it to refer to this tag.

            Every tag write and the `tag` search filter take it.
          example: tag_275zx5fj2f0nka3hnyk651zr1e
        clustr_group_id:
          type: string
          description: >-
            The Clustr ID of the tag field it lives in, for example
            `tgrp_s4t5tk9wn7mx8n3hry88wv0rqa`. A tag

            cannot move between fields.
          example: tgrp_s4t5tk9wn7mx8n3hry88wv0rqa
        id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_tag_id`.
        group_id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_group_id`.
        group_name:
          type: string
          description: That field's name, so a flat list says which field a tag is in.
        subject_type:
          type: string
          enum:
            - account
            - person
            - path
          description: 'The field''s subject type: `account`, `person` or `path`.'
        name:
          type: string
          maxLength: 50
        color:
          type: string
          maxLength: 20
          example: '#3B82F6'
        position:
          type: integer
        closes:
          type: boolean
          description: >-
            For opportunity (`path`) tags: `true` means the conversation on this
            path is over. A path carrying it sorts last, shows a neutral pill
            and stays visible.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

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