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

# List Record Tags

> List all tags applied to a specific Record.



## OpenAPI

````yaml get /records/{recordId}/tags
openapi: 3.1.0
info:
  title: Scorecard API
  description: REST API for Scorecard
  version: 1.0.0
servers:
  - url: https://api2.scorecard.io/api/v2
security:
  - ApiKeyAuth: []
paths:
  /records/{recordId}/tags:
    get:
      summary: List Record Tags
      description: List all tags applied to a specific Record.
      operationId: listRecordTags
      parameters:
        - in: path
          name: recordId
          description: The ID of the Record to list tags for.
          schema:
            type: string
            example: '777'
          required: true
      responses:
        '200':
          description: Successfully retrieved the Record's tags.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/RecordTag'
                required:
                  - data
              examples:
                Tags for a record:
                  value:
                    data:
                      - id: '1'
                        recordId: '777'
                        text: urgent
                        source: user
                        userId: user_abc123
                        createdAt: '2026-03-01T12:00:00.000Z'
                      - id: '2'
                        recordId: '777'
                        text: env:prod
                        source: otel
                        userId: null
                        createdAt: '2026-03-01T12:00:00.000Z'
                  summary: Tags for a record
                  description: >-
                    Example response showing user- and OTel-sourced tags on a
                    Record.
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '500':
          $ref: '#/components/responses/ServiceError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Scorecard from 'scorecard-ai';

            const client = new Scorecard({
              apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted
            });

            const tags = await client.records.tags.list('777');

            console.log(tags.data);
        - lang: Python
          source: |-
            import os
            from scorecard_ai import Scorecard

            client = Scorecard(
                api_key=os.environ.get("SCORECARD_API_KEY"),  # This is the default and can be omitted
            )
            tags = client.records.tags.list(
                "777",
            )
            print(tags.data)
        - lang: cURL
          source: |-
            curl https://api2.scorecard.io/api/v2/records/$RECORD_ID/tags \
                -H "Authorization: Bearer $SCORECARD_API_KEY"
components:
  schemas:
    RecordTag:
      type: object
      properties:
        id:
          type: string
          description: The ID of the tag.
        recordId:
          type: string
          description: The ID of the Record this tag belongs to.
        text:
          type: string
          description: >-
            The tag text. May encode key:value semantics with a colon (e.g.
            `env:prod`).
        source:
          type: string
          enum:
            - user
            - otel
          description: >-
            How the tag was applied: `user` (UI, SDK, or REST) or `otel` (lifted
            from a span attribute at ingest).
        userId:
          type:
            - string
            - 'null'
          description: The ID of the user who applied the tag; null for OTel-sourced tags.
        createdAt:
          type: string
          description: The ISO 8601 timestamp when the tag was created.
      required:
        - id
        - recordId
        - text
        - source
        - userId
        - createdAt
      description: >-
        An arbitrary tag applied to a Record (e.g. `urgent`, `regression`,
        `env:prod`), either by a user or lifted from OTel span attributes at
        ingest.
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
          x-stainless-any: true
      required:
        - code
        - message
        - details
      description: An API error.
  responses:
    UnauthenticatedError:
      description: Error indicating that the request is not authenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Authentication failure:
              value:
                code: UNAUTHORIZED
                message: Invalid or missing authentication token
                details: {}
              summary: Authentication failure
              description: >-
                Error returned when authentication credentials are invalid or
                missing.
    ServiceError:
      description: >-
        An internal service error indicating an issue with the Scorecard
        service.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Internal error:
              value:
                code: INTERNAL_ERROR
                message: An unexpected error occurred while processing your request.
                details: {}
              summary: Internal error
              description: Generic error when an unexpected internal issue occurs.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: starts with ak_

````