> ## 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.

# Resolve Access

> Resolve why (and how) a subject can access a resource.

``allowed`` is computed via the graph backend; ``paths`` are derived from the
direct ``resource`` grants matching the subject so the UI can render the
derivation. Grants inherited through ``project``/``role`` still affect
``allowed`` but are not expanded into hops here.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/access-control/resolve
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/resolve:
    post:
      tags:
        - v1
        - protected
        - access-control
      summary: Resolve Access
      description: >-
        Resolve why (and how) a subject can access a resource.


        ``allowed`` is computed via the graph backend; ``paths`` are derived
        from the

        direct ``resource`` grants matching the subject so the UI can render the

        derivation. Grants inherited through ``project``/``role`` still affect

        ``allowed`` but are not expanded into hops here.
      operationId: resolve_access_v1_access_control_resolve_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ResolveRequest:
      properties:
        resource_id:
          title: Resource Id
          type: string
        resource_kind:
          enum:
            - skill
            - collection
            - mcp
            - agent
          title: Resource Kind
          type: string
        subject_id:
          title: Subject Id
          type: string
      required:
        - subject_id
        - resource_kind
        - resource_id
      title: ResolveRequest
      type: object
    ResolveResponse:
      properties:
        allowed:
          title: Allowed
          type: boolean
        effective_relation:
          anyOf:
            - type: string
            - type: 'null'
          title: Effective Relation
        paths:
          items:
            $ref: '#/components/schemas/ResolvePath'
          title: Paths
          type: array
        verb:
          title: Verb
          type: string
      required:
        - allowed
        - effective_relation
        - verb
        - paths
      title: ResolveResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ResolvePath:
      properties:
        hops:
          items:
            $ref: '#/components/schemas/ResolveHop'
          title: Hops
          type: array
        relation:
          title: Relation
          type: string
        rels:
          items:
            type: string
          title: Rels
          type: array
      required:
        - relation
        - hops
        - rels
      title: ResolvePath
      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
    ResolveHop:
      properties:
        color:
          title: Color
          type: string
        id:
          title: Id
          type: string
        kind:
          title: Kind
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - kind
        - color
      title: ResolveHop
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````