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

# Resolve a counterparty credential subject's DID document

> The DID document behind a counterparty credential's `sub` (`did:web:<registry>:businesses:<jurisdiction>:<filing-number>`), via the standard did:web path mapping. Keyless — the business holds no signing keys; its credential binds to a domain — so the document anchors the DID to the issuer registry and the entity's verified web presence. Only subjects with a currently valid credential resolve. Unauthenticated; cacheable for five minutes.



## OpenAPI

````yaml /api-reference/openapi.json get /businesses/{jurisdiction}/{filing_number}/did.json
openapi: 3.1.0
info:
  title: baselayer-api-service
  version: 0.1.0
servers:
  - url: https://api.baselayer.com/
security: []
paths:
  /businesses/{jurisdiction}/{filing_number}/did.json:
    get:
      tags:
        - Registry
      summary: Resolve a counterparty credential subject's DID document
      description: >-
        The DID document behind a counterparty credential's `sub`
        (`did:web:<registry>:businesses:<jurisdiction>:<filing-number>`), via
        the standard did:web path mapping. Keyless — the business holds no
        signing keys; its credential binds to a domain — so the document anchors
        the DID to the issuer registry and the entity's verified web presence.
        Only subjects with a currently valid credential resolve.
        Unauthenticated; cacheable for five minutes.
      operationId: get_business_did_document
      parameters:
        - name: jurisdiction
          in: path
          required: true
          schema:
            type: string
            title: Jurisdiction
        - name: filing_number
          in: path
          required: true
          schema:
            type: string
            title: Filing Number
      responses:
        '200':
          description: Successful Response
        '404':
          description: >-
            No counterparty credential has been issued for these registry
            coordinates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
                title: ResourceNotFound
                description: Could not locate the resource for the given URI.
                examples:
                  - code: 1
                    message: Could not locate the resource for the given URI.
                    metadata: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    APIError:
      properties:
        code:
          type: integer
          title: Code
        message:
          type: string
          title: Message
        uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Uri
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - code
        - message
      title: APIError
      description: >-
        APIError is a Pydantic model for standardizing error responses from the
        API.


        This class is used internally by APIException for JSON serialization.

        Users should typically work with APIException directly in exception
        catalogs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````