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

# Get Application Directory



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/registry/v1/agent-directory/{application_directory_id}
openapi: 3.1.0
info:
  title: Barndoor.ai Public API
  description: Unified public API specification for Barndoor.ai platform
  version: 2.18.0
servers:
  - url: https://{host}
    description: Barndoor public API
    variables:
      host:
        default: platform.barndoor.ai
        description: >-
          The host serving your Barndoor deployment. Defaults to production;
          override it for another environment or a dedicated deployment.
security:
  - ApiKey: []
  - OAuth2:
      - openid
      - profile
      - email
tags:
  - name: dlp
    x-group: Data Control Center
  - name: identity
    x-group: Identity
  - name: llm-gateway
    x-group: LLM Gateway
  - name: notification
    x-group: Notifications
  - name: policy
    x-group: Policies
  - name: registry
    x-group: MCP Gateway
  - name: system-management
    x-group: Log Exports
paths:
  /api/registry/v1/agent-directory/{application_directory_id}:
    get:
      tags:
        - registry
      summary: Get Application Directory
      operationId: get_agent_directory_entry
      parameters:
        - name: application_directory_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Application Directory Id
        - name: include_oauth_config
          in: query
          required: false
          schema:
            type: boolean
            description: Include OAuth configuration from the upstream IdP
            default: false
            title: Include Oauth Config
          description: Include OAuth configuration from the upstream IdP
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationDirectoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApplicationDirectoryResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        owner_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Name
          description: Responsible team or person that manages the agent.
        owner_contact:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Contact
          description: Contact information (email, Slack, etc.) for the agent owner.
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        public:
          type: boolean
          title: Public
        app_type:
          anyOf:
            - $ref: '#/components/schemas/AppType'
            - type: 'null'
          description: >-
            OAuth application type. Source of truth for the agent's app type;
            projected onto provider-specific fields (Auth0 ``app_type``,
            Keycloak ``serviceAccountsEnabled``).
        dcr:
          type: boolean
          title: Dcr
        post_login_success:
          type: boolean
          title: Post Login Success
        callbacks:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          title: Callbacks
          description: OAuth callback URLs stored in alphanumeric ascending order
        cimd_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Cimd Url
          description: >-
            Canonicalized OAuth Client ID Metadata Document URL for clients
            registered via the CIMD flow. NULL for non-CIMD clients.
        oauth_config:
          anyOf:
            - $ref: '#/components/schemas/OAuthConfig'
            - type: 'null'
      type: object
      required:
        - id
        - created_at
        - updated_at
        - name
        - description
        - owner_name
        - owner_contact
        - organization_id
        - external_id
        - public
        - app_type
        - dcr
        - post_login_success
        - callbacks
        - cimd_url
        - oauth_config
      title: ApplicationDirectoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AppType:
      type: string
      enum:
        - regular_web
        - spa
        - native
        - non_interactive
      title: AppType
      description: |-
        Supported OAuth application types.

        Values mirror Auth0's ``app_type`` field; the same values are used
        internally for Keycloak (which has no native ``app_type`` concept).
    OAuthConfig:
      properties:
        callbacks:
          items:
            type: string
          type: array
          title: Callbacks
        allowed_logout_urls:
          items:
            type: string
          type: array
          title: Allowed Logout Urls
        app_type:
          anyOf:
            - $ref: '#/components/schemas/AppType'
            - type: 'null'
      type: object
      title: OAuthConfig
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        A Barndoor API key, sent as `Authorization: Bearer <key>`. Keys are
        prefixed `bdai_` and are opaque — do not attempt to decode one.
        Interchangeable with an OAuth 2.0 access token.
    OAuth2:
      type: oauth2
      x-issuer: https://auth.barndoor.ai/realms/barndoor
      description: >-
        An OAuth 2.0 access token from Barndoor's identity provider, sent as
        `Authorization: Bearer <token>`. Public clients must use PKCE.
        Interchangeable with an API key.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/auth
          tokenUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/token
          scopes:
            openid: Issue an OIDC ID token identifying the caller.
            profile: Read the caller's basic profile claims.
            email: Read the caller's email address.
            offline_access: Issue a refresh token. Optional — no operation requires it.
        clientCredentials:
          tokenUrl: >-
            https://auth.barndoor.ai/realms/barndoor/protocol/openid-connect/token
          scopes:
            openid: Issue an OIDC ID token identifying the caller.
            profile: Read the caller's basic profile claims.
            email: Read the caller's email address.
            offline_access: Issue a refresh token. Optional — no operation requires it.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.