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

# List block references

> Returns each agent in the org whose draft or active version references this block, where the reference appears (`draft` / `active` / `archived`), which block version the agent's ACTIVE version is pinned to, and whether that is behind the block's current active version.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/prompt-blocks/{id}/references
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/prompt-blocks/{id}/references:
    get:
      tags:
        - Prompt blocks
      summary: List block references
      description: >-
        Returns each agent in the org whose draft or active version references
        this block, where the reference appears (`draft` / `active` /
        `archived`), which block version the agent's ACTIVE version is pinned
        to, and whether that is behind the block's current active version.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: d41a8f6b-9c27-4b13-a5e8-2f60c1d7b394
      responses:
        '200':
          description: Every agent in the org that references this block
          content:
            application/json:
              schema:
                type: object
                properties:
                  activeVersionId:
                    type: string
                    format: uuid
                    nullable: true
                    description: >-
                      The block's own active version — what `outdated` is
                      measured against.
                  references:
                    type: array
                    items:
                      type: object
                      properties:
                        agentId:
                          type: string
                          format: uuid
                        name:
                          type: string
                          nullable: true
                        referencedBy:
                          type: array
                          description: >-
                            Where the reference appears on that agent: `draft`,
                            `active`, and/or `archived` (an older published
                            version).
                          items:
                            type: string
                        pinnedVersionId:
                          type: string
                          format: uuid
                          nullable: true
                          description: >-
                            The block version the agent's ACTIVE version is
                            pinned to. Null when only its draft references the
                            block.
                        activeAgentVersionId:
                          type: string
                          format: uuid
                          nullable: true
                        outdated:
                          type: boolean
                          description: >-
                            The agent is serving an older copy of this block.
                            POST /rollout republishes it onto the current one.
              example:
                activeVersionId: 7e2b5a90-3c48-4d61-b9f7-05a8c2e14d6f
                references:
                  - agentId: 6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10
                    name: Support agent
                    referencedBy:
                      - active
                      - draft
                    pinnedVersionId: 5c39a8d1-2e74-4b60-9f83-a1d0e6b28c47
                    activeAgentVersionId: b3f7a2c8-5d19-4e6b-8f02-1a4c9e7d3b55
                    outdated: true
        '404':
          description: Not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````