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

# List repositories consuming this artifact, with pinned versions.

> List repositories consuming this artifact from the latest scan, with each pinned version, on-latest vs lagging counts, and a version-state breakdown. Pro feature.



## OpenAPI

````yaml /openapi.json get /api/v1/artifacts/{artifact_id}/consumers
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/artifacts/{artifact_id}/consumers:
    get:
      tags:
        - artifacts
      summary: List repositories consuming this artifact, with pinned versions.
      description: >-
        List repositories consuming this artifact from the latest scan, with
        each pinned version, on-latest vs lagging counts, and a version-state
        breakdown. Pro feature.
      operationId: get_artifact_consumers_api_v1_artifacts__artifact_id__consumers_get
      parameters:
        - in: path
          name: artifact_id
          required: true
          schema:
            format: uuid
            title: Artifact Id
            type: string
        - in: header
          name: X-Workspace-Id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
        - in: cookie
          name: riftmap_access
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Riftmap Access
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactConsumersResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    ArtifactConsumersResponse:
      description: All consumers of a specific artifact.
      properties:
        artifact:
          $ref: '#/components/schemas/ArtifactResponse'
        consumers:
          items:
            $ref: '#/components/schemas/ArtifactConsumer'
          title: Consumers
          type: array
        consumers_lagging:
          title: Consumers Lagging
          type: integer
        consumers_on_latest:
          title: Consumers On Latest
          type: integer
        latest_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Latest Version
        state_breakdown:
          additionalProperties:
            type: integer
          default: {}
          title: State Breakdown
          type: object
        total_consumers:
          title: Total Consumers
          type: integer
      required:
        - artifact
        - consumers
        - total_consumers
        - consumers_on_latest
        - consumers_lagging
        - latest_version
      title: ArtifactConsumersResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ArtifactResponse:
      description: An artifact (Docker image, Python package, Terraform module, etc.).
      properties:
        artifact_type:
          title: Artifact Type
          type: string
        connected_org_id:
          format: uuid
          title: Connected Org Id
          type: string
        consumer_count:
          default: 0
          title: Consumer Count
          type: integer
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          format: uuid
          title: Id
          type: string
        is_orphan:
          default: false
          title: Is Orphan
          type: boolean
        name:
          title: Name
          type: string
        registry_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Registry Url
        source_repository:
          anyOf:
            - $ref: '#/components/schemas/ArtifactSourceRepo'
            - type: 'null'
        source_repository_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Source Repository Id
        updated_at:
          format: date-time
          title: Updated At
          type: string
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
      required:
        - id
        - connected_org_id
        - artifact_type
        - name
        - source_repository_id
        - registry_url
        - version
        - created_at
        - updated_at
      title: ArtifactResponse
      type: object
    ArtifactConsumer:
      description: A repository that consumes an artifact.
      properties:
        import_count:
          default: 1
          title: Import Count
          type: integer
        is_latest:
          title: Is Latest
          type: boolean
        repository:
          $ref: '#/components/schemas/ArtifactConsumerRepo'
        source_file:
          title: Source File
          type: string
        source_line:
          title: Source Line
          type: integer
        version_constraint:
          anyOf:
            - type: string
            - type: 'null'
          title: Version Constraint
        version_constraint_state:
          default: absent
          title: Version Constraint State
          type: string
      required:
        - repository
        - version_constraint
        - source_file
        - source_line
        - is_latest
      title: ArtifactConsumer
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    ArtifactSourceRepo:
      description: Minimal representation of the repository that produces an artifact.
      properties:
        full_path:
          title: Full Path
          type: string
        id:
          format: uuid
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - full_path
      title: ArtifactSourceRepo
      type: object
    ArtifactConsumerRepo:
      description: Minimal repository reference embedded in a consumer row.
      properties:
        full_path:
          title: Full Path
          type: string
        id:
          format: uuid
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - full_path
      title: ArtifactConsumerRepo
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey
    HTTPBearer:
      description: API key as Bearer token (rfm_live_... prefix)
      scheme: bearer
      type: http

````