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

# Recommend a card

> Get the one best capability card for a task, with a score.


## OpenAPI

```yaml openapi.json post /v1/discovery/recommend
openapi: 3.1.0
info:
  title: Ocean One API
  version: 2.5.0
servers:
  - url: https://api.plungeai.com
paths:
  /v1/discovery/recommend:
    post:
      operationId: post-v1-discovery-recommend
      summary: Recommend the best capability card for a task
      security:
        - ozkBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                task:
                  type: string
              required:
                - type
                - task
      responses:
        "200":
          description: Recommendation
          content:
            application/json:
              schema:
                type: object
                properties:
                  recommended:
                    type:
                      - string
                      - "null"
                    description: null when nothing matches
                  card:
                    oneOf:
                      - $ref: "#/components/schemas/Card"
                      - type: "null"
                    description: null when nothing matches
                  score:
                    type: number
                    description: 0 when nothing matches
        "400":
          description: invalid_json / invalid_request — malformed or rejected body
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: unauthorized — missing, invalid or revoked ozk_ key
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: "not_found — no route for this method on this path: every other method answers it"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: rate_limited — Retry-After header
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Card:
      type: object
      description: Registry capability card (summary fields).
      properties:
        id:
          type: string
        credential:
          $ref: "#/components/schemas/Credential"
          description: Present on agent cards (not on skill or connector cards).
        name:
          type: string
        type:
          type: string
        category:
          type: string
        status:
          type: string
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        quality:
          description: Present only when the search was called with include=quality; null when unmeasured (no eval-service binding on this tier, no runs yet, or an upstream miss).
          type:
            - object
            - "null"
          properties:
            score:
              type:
                - number
                - "null"
            success_rate:
              type:
                - number
                - "null"
            runs:
              type: integer
      required:
        - id
        - name
        - type
        - category
        - status
      additionalProperties: true
    Credential:
      description: "The credential an agent runs on. `platform`: our keys, nothing to set up. `connection`: the caller’s own account at `provider` — connect it once with `POST /v1/connections/{provider}` (a key) or `POST /v1/connections/{provider}/link` (a hosted link); without it a call answers 424 with a `connect` pointer."
      oneOf:
        - type: object
          properties:
            tier:
              type: string
              enum:
                - platform
          required:
            - tier
        - type: object
          properties:
            tier:
              type: string
              enum:
                - connection
            provider:
              type: string
            method:
              type: string
              enum:
                - oauth
                - api_key
                - wallet
          required:
            - tier
            - provider
            - method
    Error:
      type: object
      description: Standard error envelope. Every error response also carries an `X-Error-Code` response header equal to error.code, so a client branches on the header regardless of the negotiated body format (json | yaml | markdown | text). When the request created an execution, the `X-Execution-Id` response header is also set. Errors follow the negotiated format like success bodies.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            connect:
              type: object
              description: "On a 424 connection_required / credential_required: where the missing connection is made."
              properties:
                provider:
                  type: string
                method:
                  type: string
                  enum:
                    - oauth
                    - api_key
                    - wallet
                link:
                  type: string
                  example: POST /v1/connections/stripe/link
          required:
            - code
            - message
          additionalProperties: true
      required:
        - error
  securitySchemes:
    ozkBearer:
      type: http
      scheme: bearer
      description: "ozk_ platform API key (Authorization: Bearer ozk_…)"
```
