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

# List Relationships

> List resource-ownership grants enriched with display names.

Grants live on ``resource:<uuid>`` objects; each is mapped back onto the DB
entity (agent / skill collection / MCP server / skill) it represents. The
optional ``namespace`` filter restricts results to one entity kind.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/access-control/relationships
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/access-control/relationships:
    get:
      tags:
        - v1
        - protected
        - access-control
      summary: List Relationships
      description: >-
        List resource-ownership grants enriched with display names.


        Grants live on ``resource:<uuid>`` objects; each is mapped back onto the
        DB

        entity (agent / skill collection / MCP server / skill) it represents.
        The

        optional ``namespace`` filter restricts results to one entity kind.
      operationId: list_relationships_v1_access_control_relationships_get
      parameters:
        - in: query
          name: namespace
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Namespace
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelationshipsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    RelationshipsResponse:
      properties:
        count:
          title: Count
          type: integer
        relationships:
          items:
            $ref: '#/components/schemas/RelationshipItem'
          title: Relationships
          type: array
      required:
        - relationships
        - count
      title: RelationshipsResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    RelationshipItem:
      properties:
        direct:
          title: Direct
          type: boolean
        fanout:
          anyOf:
            - type: integer
            - type: 'null'
          title: Fanout
        namespace:
          title: Namespace
          type: string
        object:
          title: Object
          type: string
        object_name:
          title: Object Name
          type: string
        relation:
          title: Relation
          type: string
        subject:
          title: Subject
          type: string
        subject_kind:
          enum:
            - agent
            - user
            - workspace
          title: Subject Kind
          type: string
        subject_name:
          title: Subject Name
          type: string
      required:
        - namespace
        - object
        - object_name
        - relation
        - subject
        - subject_kind
        - subject_name
        - direct
      title: RelationshipItem
      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
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````