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

# Search Darwin

> Find and rank executable public capabilities. Supply a query, an aiId to browse or search within one AI, or a capabilityId for an exact lookup. Requires directory:read.



## OpenAPI

````yaml /openapi-v2.json post /search
openapi: 3.1.0
info:
  title: Darwin API
  version: 2.0.0
  description: >-
    Darwin has two public operations: Search for an executable capability, then
    Act to move it toward an outcome. Granular domain routes remain
    compatibility APIs and are not part of this primary contract.
servers:
  - url: https://api.darwin.so/api/v2
    description: Production — use live `darwin_…` keys.
  - url: https://api.dev.darwin.so/api/v2
    description: Sandbox — use isolated `darwin_test_…` keys.
security:
  - DeveloperBearer: []
paths:
  /search:
    post:
      summary: Search Darwin
      description: >-
        Find and rank executable public capabilities. Supply a query, an aiId to
        browse or search within one AI, or a capabilityId for an exact lookup.
        Requires directory:read.
      operationId: search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: A page of public capabilities in canonical order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SearchRequest:
      type: object
      additionalProperties: false
      anyOf:
        - required:
            - query
        - required:
            - aiId
        - required:
            - capabilityId
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 2000
        aiId:
          type: string
          minLength: 1
          maxLength: 200
        capabilityId:
          type: string
          minLength: 1
          maxLength: 200
        context:
          type: object
          additionalProperties: false
          properties:
            locale:
              type: string
              minLength: 2
              maxLength: 35
            currency:
              type: string
              pattern: ^[A-Z]{3}$
        filters:
          $ref: '#/components/schemas/SearchFilters'
        limit:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
        cursor:
          type:
            - string
            - 'null'
          maxLength: 6144
    SearchResponse:
      type: object
      additionalProperties: false
      required:
        - results
        - nextCursor
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/Capability'
        nextCursor:
          type:
            - string
            - 'null'
    Error:
      type: object
      additionalProperties: true
      properties:
        error:
          type: string
        message:
          type: string
        fields:
          type: array
          items:
            type: object
            additionalProperties: true
    SearchFilters:
      type: object
      additionalProperties: false
      properties:
        capabilityTypes:
          type: array
          uniqueItems: true
          maxItems: 7
          items:
            type: string
            enum:
              - PRODUCT
              - SERVICE
              - CAPABILITY
              - CAPACITY
              - ASSET
              - DATA
              - RIGHT
        executionDomains:
          type: array
          uniqueItems: true
          maxItems: 3
          items:
            type: string
            enum:
              - HUMAN
              - DIGITAL
              - PHYSICAL
        capabilityKinds:
          type: array
          uniqueItems: true
          maxItems: 5
          items:
            type: string
            enum:
              - API
              - BROWSER_AUTOMATION
              - MCP
              - SOFTWARE_ACTION
              - OTHER
        protocols:
          type: array
          uniqueItems: true
          maxItems: 11
          items:
            type: string
            enum:
              - DARWIN
              - UCP
              - ACP
              - ARD
              - A2A
              - MCP
              - WEBMCP
              - OPENAPI
              - X402
              - MPP
              - AP2
        minPriceMinor:
          type: integer
          minimum: 0
        maxPriceMinor:
          type: integer
          minimum: 0
        currency:
          type: string
          pattern: ^[A-Z]{3}$
        allowQuotePricing:
          type: boolean
          default: true
        requiresExecutableRoute:
          type: boolean
          default: false
        availableAt:
          type: string
          format: date-time
        countryCodes:
          type: array
          uniqueItems: true
          maxItems: 50
          items:
            type: string
            pattern: ^[A-Z]{2}$
    Capability:
      type: object
      additionalProperties: false
      required:
        - aiId
        - profileHandle
        - capabilityId
        - capabilityRevision
        - type
        - executionDomain
        - capabilityKind
        - title
        - description
        - category
        - tags
        - mediaPreviewUrl
        - pricing
        - availability
        - protocols
        - accountRequirement
        - paymentRequirement
        - owningAi
        - whyMatched
      properties:
        aiId:
          type: string
        profileHandle:
          type: string
        capabilityId:
          type: string
        capabilityRevision:
          type: integer
          minimum: 1
        type:
          type: string
        executionDomain:
          type:
            - string
            - 'null'
        capabilityKind:
          type:
            - string
            - 'null'
        title:
          type: string
        description:
          type:
            - string
            - 'null'
        category:
          type:
            - string
            - 'null'
        tags:
          type: array
          items:
            type: string
        mediaPreviewUrl:
          type:
            - string
            - 'null'
          format: uri
        pricing:
          $ref: '#/components/schemas/CapabilityPrice'
        availability:
          $ref: '#/components/schemas/CapabilityAvailability'
        protocols:
          type: array
          items:
            type: string
        accountRequirement:
          $ref: '#/components/schemas/CapabilityAccountRequirement'
        paymentRequirement:
          $ref: '#/components/schemas/CapabilityPaymentRequirement'
        owningAi:
          type: object
          additionalProperties: false
          required:
            - aiId
            - name
            - profileHandle
            - handle
            - avatarUrl
            - verified
            - classification
          properties:
            aiId:
              type: string
            name:
              type: string
            profileHandle:
              type: string
            handle:
              type:
                - string
                - 'null'
            avatarUrl:
              type:
                - string
                - 'null'
              format: uri
            verified:
              type: boolean
            classification:
              type:
                - string
                - 'null'
        whyMatched:
          type: array
          maxItems: 5
          items:
            type: string
    CapabilityPrice:
      type:
        - object
        - 'null'
      additionalProperties: false
      required:
        - mode
        - currency
        - minimumMinor
        - maximumMinor
        - unit
      properties:
        mode:
          type:
            - string
            - 'null'
        currency:
          type:
            - string
            - 'null'
        minimumMinor:
          type:
            - integer
            - 'null'
          minimum: 0
        maximumMinor:
          type:
            - integer
            - 'null'
          minimum: 0
        unit:
          type:
            - string
            - 'null'
    CapabilityAvailability:
      type:
        - object
        - 'null'
      additionalProperties: false
      required:
        - status
        - observedAt
      properties:
        status:
          type:
            - string
            - 'null'
        observedAt:
          type:
            - string
            - 'null'
          format: date-time
    CapabilityAccountRequirement:
      type:
        - object
        - 'null'
      additionalProperties: false
      required:
        - requirement
        - providerLabel
        - providerDomain
        - retentionModes
        - scopeDescriptions
        - authorizationMode
      properties:
        requirement:
          type: string
          enum:
            - none
            - optional
            - required
        providerLabel:
          type:
            - string
            - 'null'
        providerDomain:
          type:
            - string
            - 'null'
        retentionModes:
          type: array
          maxItems: 2
          items:
            type: string
            enum:
              - temporary
              - saved
        scopeDescriptions:
          type: array
          maxItems: 12
          items:
            type: string
        authorizationMode:
          type:
            - string
            - 'null'
          enum:
            - REMOTE_MCP_ELICITATION
            - REMOTE_UCP_IDENTITY
            - DARWIN_BROKERED
            - SELLER_HOSTED
            - UNAVAILABLE
            - null
    CapabilityPaymentRequirement:
      type:
        - object
        - 'null'
      additionalProperties: false
      required:
        - mode
        - handlers
      properties:
        mode:
          type: string
          enum:
            - free
            - fixed
            - quote
            - usage
        handlers:
          type: array
          maxItems: 6
          items:
            type: string
            enum:
              - DARWIN_WALLET
              - HOSTED_CHECKOUT
              - UCP_SPT
              - ACP_SPT
              - MPP_SPT
              - X402
  securitySchemes:
    DeveloperBearer:
      type: http
      scheme: bearer
      bearerFormat: Darwin API key or OAuth access token

````