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

# Get Library Entity Links

> Returns deduplicated direct library relationships in either direction as oId, entityType, relationship (the linked entity is a parent or child of the requested entity), and linkType (explicit or inferred). Parent/child describes organizational scope, not exclusive ownership. Includes offerings, solution membership, playbooks, core features, value props, and authored/inferred containment. Suppressed containment pairs are excluded. Inactive and archived entities are included; deleted entities and entity types unavailable to the caller are excluded. Results are scoped to the workspace and sorted by entityType, oId, then relationship. Duplicate neighbor/direction pairs prefer explicit over inferred links. An empty links array means no accessible relationships. Atomic concept edges and source provenance are not included.



## OpenAPI

````yaml get /api/v2/library/links
openapi: 3.0.0
info:
  version: 6.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/library/links:
    get:
      tags:
        - Library
      summary: Get Library Entity Links
      description: >-
        Returns deduplicated direct library relationships in either direction as
        oId, entityType, relationship (the linked entity is a parent or child of
        the requested entity), and linkType (explicit or inferred). Parent/child
        describes organizational scope, not exclusive ownership. Includes
        offerings, solution membership, playbooks, core features, value props,
        and authored/inferred containment. Suppressed containment pairs are
        excluded. Inactive and archived entities are included; deleted entities
        and entity types unavailable to the caller are excluded. Results are
        scoped to the workspace and sorted by entityType, oId, then
        relationship. Duplicate neighbor/direction pairs prefer explicit over
        inferred links. An empty links array means no accessible relationships.
        Atomic concept edges and source provenance are not included.
      operationId: getEntityLinks
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Library entity oId; type is inferred from its prefix
          required: true
          description: Library entity oId; type is inferred from its prefix
          name: oId
          in: query
      responses:
        '200':
          description: Library links
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  oId:
                    type: string
                  links:
                    type: array
                    items:
                      type: object
                      properties:
                        oId:
                          type: string
                        entityType:
                          type: string
                          enum:
                            - persona
                            - product
                            - playbook
                            - segment
                            - use_case
                            - competitor
                            - alternative
                            - buying_trigger
                            - core_feature
                            - objection
                            - proof_point
                            - reference
                            - service
                            - solution
                            - brand_voice
                            - hypothesis
                            - skill
                        relationship:
                          type: string
                          enum:
                            - parent
                            - child
                          description: >-
                            The linked entity's role relative to the requested
                            entity. Organizational scope, not exclusive
                            ownership.
                        linkType:
                          type: string
                          enum:
                            - explicit
                            - inferred
                          description: >-
                            Explicit is a saved library association or authored
                            containment; inferred is stored derived containment.
                      required:
                        - oId
                        - entityType
                        - relationship
                        - linkType
                required:
                  - _metadata
                  - oId
                  - links
        '400':
          description: Invalid or unsupported library oId
        '403':
          description: Missing read or entity-type entitlement
        '404':
          description: Entity not found in this workspace
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````