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

# Semantic endpoint search (ranked cards)

> Searches the endpoint catalog by meaning. Send a plain-language `q`, such as "twitter profile by handle", and get endpoint cards in ranked order. Each card has its `categories`, its health `metrics` when known, and a relevance `score`. Narrow the search with `category`, `minScore` or `readonly`. Call `POST /v1/inspect` on a result to get its details, such as its input schema, before you run it.



## OpenAPI

````yaml https://monid.ai/openapi.json post /v1/discover/endpoints
openapi: 3.1.0
info:
  title: Monid API
  version: 0.1.0
  description: >-
    Agentic payment platform for data. Agents use it to discover and buy data on
    demand. Authenticated routes take a Monid API key as a Bearer token. Errors
    return `{ code, message }`. List endpoints use cursor pagination.
servers:
  - url: https://api.monid.ai
    description: Production
security: []
paths:
  /v1/discover/endpoints:
    post:
      tags:
        - Discover
      summary: Semantic endpoint search (ranked cards)
      description: >-
        Searches the endpoint catalog by meaning. Send a plain-language `q`,
        such as "twitter profile by handle", and get endpoint cards in ranked
        order. Each card has its `categories`, its health `metrics` when known,
        and a relevance `score`. Narrow the search with `category`, `minScore`
        or `readonly`. Call `POST /v1/inspect` on a result to get its details,
        such as its input schema, before you run it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiscoverEndpointsRequest'
      responses:
        '200':
          description: Ranked endpoint cards
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiscoverEndpointsResponse'
        '400':
          description: >-
            Bad request. The input failed validation, and `message` says which
            field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized. The API key is missing, invalid, expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden. The API key lacks the scope this operation needs, or has
            no workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Rate limited. Wait the number of seconds in the `Retry-After`
            header, then retry. The `RateLimit-Limit`, `RateLimit-Remaining` and
            `RateLimit-Reset` headers describe the limit that applied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - Bearer: []
components:
  schemas:
    DiscoverEndpointsRequest:
      type: object
      properties:
        q:
          type: string
          minLength: 1
          maxLength: 1000
          description: Natural-language search query.
          example: twitter posts
        limit:
          type: integer
          exclusiveMinimum: 0
          description: >-
            Max results (default 5). Capped at the discover over-fetch pool size
            (`api-config` `discover.overfetchSize`, 200).
          example: 5
        category:
          type: string
          maxLength: 60
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
          description: >-
            Optional category node id to narrow the ranked results (ids from
            `GET /public/v1/categories`; a top id covers its group).
          example: twitter
        minScore:
          type: number
          minimum: 0
          maximum: 2
          description: >-
            Per-call override for the post-rerank score floor — same semantics
            as the legacy POST /v1/discover body field.
          example: 0.2
        includeUnavailable:
          type: boolean
          default: false
          description: >-
            Endpoints currently in outage are hidden by default (the page is
            back-filled from the next ranked candidates). Set true to include
            them — marked `metrics.status: "outage"` and ranked last.
          example: false
        supportsX402:
          type: boolean
          description: >-
            Filter by static eligibility for x402 payment (`POST /x402/v1/run`):
            `true` keeps only payable endpoints, `false` only non-payable ones.
            Omit for all endpoints. Network availability and request/payment
            validation are checked at execution time.
        x402Network:
          type: string
          minLength: 1
          maxLength: 100
          description: >-
            Narrow to endpoints payable via x402 on this customer-payment
            network (CAIP-2 id, e.g. `eip155:8453`). Implies
            `supportsX402=true`; an unknown/unconfigured id returns an empty
            page.
          example: eip155:8453
        readonly:
          type: boolean
          description: >-
            Filter by whether running the endpoint has side effects: `true`
            keeps only endpoints that change nothing — they cannot create,
            modify or delete your workspace resources (phone numbers, files,
            asset libraries) and take no action outside their own response
            (placing a call, sending a message, submitting a form on a website);
            `false` keeps only endpoints that can. Omit for all endpoints. A
            readonly endpoint is still billed.
        effects:
          type: array
          items:
            type: string
            enum:
              - creates
              - updates
              - deletes
          minItems: 1
          description: >-
            Keep only endpoints whose run can have AT LEAST ONE of the named
            effects on your workspace resources (phone numbers, files, asset
            libraries): `creates`, `updates`, `deletes`. Omit for all endpoints.
            Takes precedence over `readonly`. Resource effects only — an
            endpoint with none of them may still take actions outside your
            workspace (`readonly=false` includes those) and is still billed.
          example:
            - creates
            - deletes
        tags:
          type: array
          items:
            type: string
            enum:
              - free
              - promotion
              - no-markup
          description: >-
            Only endpoints carrying ANY of these tags: `free`, `promotion`,
            `no-markup`.
          example:
            - free
        excludeTags:
          type: array
          items:
            type: string
            enum:
              - free
              - promotion
              - no-markup
          description: >-
            Drop endpoints carrying ANY of these tags (e.g. `["promotion"]` = no
            time-limited endpoints).
          example:
            - promotion
        flatten:
          type: boolean
          default: false
          description: >-
            List every matched version of an endpoint (the regular one, a free
            tier, a promotion) as its own card, each ranked on its own score,
            instead of one card per group (default). `total` then counts
            endpoints, not groups.
          example: false
      required:
        - q
    DiscoverEndpointsResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DiscoverEndpointCard'
          description: Ranked endpoint cards (best match first).
        total:
          type: integer
          minimum: 0
          description: >-
            Above-floor semantic matches, one per group (an endpoint and its
            alternatives; one per endpoint with `flatten`), after the outage
            filter and the optional category narrowing, before `limit`
            truncation.
      required:
        - items
        - total
    Error:
      type: object
      properties:
        code:
          type: integer
          description: HTTP status code, duplicated in the body.
          example: 400
        message:
          type: string
          description: Human-readable error description.
          example: Bad Request
        errorCode:
          type: string
          enum:
            - BAD_REQUEST
            - VALIDATION_FAILED
            - INVALID_JSON
            - INVALID_CURSOR
            - UNAUTHENTICATED
            - FORBIDDEN
            - NOT_FOUND
            - CONFLICT
            - GONE
            - PAYLOAD_TOO_LARGE
            - INTERNAL_ERROR
            - NOT_IMPLEMENTED
            - BAD_GATEWAY
            - SERVICE_UNAVAILABLE
            - WALLET_NOT_ACTIVE
            - WALLET_PROVISIONING
            - WALLET_FAILED
            - RATE_LIMITED
            - X402_WORKSPACE_RESOURCES
            - X402_WORKSPACE_ONLY
            - X402_ACCRUING_COST
            - X402_EXCEEDS_SETTLEMENT_WINDOW
            - X402_VALIDITY_WINDOW_TOO_SHORT
            - X402_UNBOUNDED_PRICE
            - X402_SETTLEMENT_FAILED
            - MPP_WORKSPACE_RESOURCES
            - MPP_WORKSPACE_ONLY
            - MPP_ACCRUING_COST
            - MPP_UNBOUNDED_PRICE
            - MPP_PAYMENT_FAILED
            - MPP_CREDENTIAL_REPLAYED
            - MPP_PROOF_REQUIRED
            - MPP_UNAVAILABLE
            - INSUFFICIENT_SCOPE
            - WALLET_INSUFFICIENT_FUNDS
            - MAX_COST_EXCEEDED
            - IDEMPOTENCY_KEY_REUSED
            - IDEMPOTENCY_KEY_IN_USE
            - IDENTITY_PROVIDER_UNKNOWN
            - IDENTITY_LINK_REQUIRES_SESSION
            - IDENTITY_LINK_STATE_INVALID
            - IDENTITY_VERIFICATION_FAILED
            - IDENTITY_ASSURANCE_INSUFFICIENT
            - IDENTITY_PROVIDER_UNAVAILABLE
            - IDENTITY_ALREADY_LINKED
            - IDENTITY_USER_ALREADY_LINKED
            - IDENTITY_LINK_RATE_LIMITED
            - IDENTITY_REQUIRED
            - PROMO_IDENTITY_REDEEMED
            - PROMO_REDEEM_REQUIRES_SESSION
            - PROMO_CODE_REDEEMED_BY_WORKSPACE
            - PROMO_CODE_REDEEMED_BY_USER
            - PROMO_CODE_EXHAUSTED
            - PROMO_NEW_ACCOUNTS_ONLY
            - WEBHOOK_REQUIRES_SESSION
            - WEBHOOK_URL_NOT_ALLOWED
            - WEBHOOK_ENDPOINT_LIMIT
            - WEBHOOK_ROTATION_LIMIT
          description: >-
            Machine-readable reason, present on every error. Either a specific
            code (for example `MAX_COST_EXCEEDED`) or the generic code of the
            HTTP status (for example `NOT_FOUND`). Treat an unknown value as the
            generic meaning of the status.
        hints:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - command
                      - discover
                      - inspect
                      - run
                      - getRun
                      - stop
                      - releaseResource
                      - topup
                  command:
                    type: string
                  query:
                    type: string
                  provider:
                    type: string
                  endpoint:
                    type: string
                  runId:
                    type: string
                  resourceId:
                    type: string
                  stripe:
                    type: string
                  dashboard:
                    type: string
                  docs:
                    type: string
                  comment:
                    type: string
                required:
                  - kind
          description: >-
            Optional next actions, rendered for the calling client like
            run-response hints (e.g. the paid TinyFish version on a free-quota
            429 — spending permission required).
      required:
        - code
        - message
        - errorCode
    DiscoverEndpointCard:
      allOf:
        - $ref: '#/components/schemas/PublicEndpointInfo'
        - type: object
          properties:
            metrics:
              type: object
              properties:
                status:
                  type: string
                  enum:
                    - healthy
                    - stable
                    - degraded
                    - outage
                    - unknown
                  description: >-
                    Operational status. healthy = 100% green in the fresh window
                    (minutes); outage = failing right now; degraded =
                    chronically elevated errors (days); stable = clean recent
                    history, no live signal; unknown = no data at all (rare).
                runTimeMs:
                  type: object
                  properties:
                    p50:
                      type: number
                      description: Median end-to-end run time (ms) — typical.
                    p95:
                      type: number
                      description: 95th-percentile end-to-end run time (ms) — tail.
                  description: >-
                    Typical end-to-end run time, measured over the freshest
                    recent window with enough completed runs to be meaningful.
                    Omitted when no window has enough measured runs.
              required:
                - status
              description: >-
                Recent operational health (server-computed from run analytics).
                Omitted when analytics is unavailable.
            score:
              type: number
              description: >-
                Final composed reranker score. Opaque sort context — not a
                fixed-range relevance probability.
          required:
            - score
    PublicEndpointInfo:
      type: object
      properties:
        provider:
          type: string
          description: Provider slug.
          example: exa
        providerDisplayName:
          type: string
          description: Resolved provider display name (curation > slug).
        providerDisplayDescription:
          type: string
          description: Resolved provider display blurb.
        endpoint:
          type: string
          description: Endpoint path.
          example: /search
        displayName:
          type: string
          description: Resolved endpoint display label. Always populated.
        displayDescription:
          type: string
          description: Resolved endpoint display blurb. May be empty.
        price:
          $ref: '#/components/schemas/PublicPrice'
        tags:
          type: array
          items:
            type: string
          description: >-
            User-facing tags (e.g. `["free"]`): `free` = $0, `promotion` = a
            lower price for a limited time, `no-markup` = priced at the
            provider's standard rate with no platform fee added. Always an
            array; empty when none applies.
        categories:
          type: array
          items:
            type: string
          description: >-
            Depth-2 category paths — authored functional paths AND derived
            provider placement paths (e.g. `["social-media/twitter",
            "scrapers/apify"]`), treated uniformly. Bare top-level ancestors are
            excluded. Empty when the endpoint is outside the category catalog.
        offer:
          $ref: '#/components/schemas/OfferBlock'
        alternatives:
          type: array
          items:
            $ref: '#/components/schemas/Alternative'
          description: >-
            Other members of this endpoint's GROUP (a regular endpoint and its
            offers, same provider): its free tier, its promotions, or — on an
            offer — the regular price. Only what differs is listed. Absent when
            none.
        supportedX402Networks:
          type: array
          items:
            type: string
          description: >-
            Customer-payment networks (CAIP-2 ids, e.g. `["eip155:8453",
            "eip155:143"]`) this endpoint can be paid for through `POST
            /x402/v1/run`. Empty when the endpoint is not x402-eligible
            (workspace-resource coupling, cost accrual, settlement-window fit,
            or visibility). Static protocol/policy compatibility — network
            availability and request/payment validation are checked at execution
            time.
      required:
        - provider
        - providerDisplayName
        - endpoint
        - displayName
        - displayDescription
        - price
        - tags
        - categories
        - supportedX402Networks
    PublicPrice:
      type: object
      properties:
        type:
          type: string
        amount:
          type: object
          properties:
            value:
              type: number
            currency:
              type: string
              enum:
                - USD
          required:
            - value
            - currency
        flatFee:
          type: object
          properties:
            value:
              type: number
            currency:
              type: string
              enum:
                - USD
          required:
            - value
            - currency
        period:
          type: object
          properties:
            unit:
              type: string
              enum:
                - MINUTE
                - DAY
                - MONTH
            count:
              type: integer
              exclusiveMinimum: 0
          required:
            - unit
            - count
        per:
          anyOf:
            - type: object
              properties:
                unit:
                  type: string
                  enum:
                    - MINUTE
                    - DAY
                    - MONTH
                count:
                  type: integer
                  exclusiveMinimum: 0
              required:
                - unit
                - count
            - type: number
        unit:
          type: string
          enum:
            - token
            - character
            - second
            - image
            - credit
            - result
            - gb-month
            - step
            - byte
            - url
            - page
            - cent
        default:
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - PER_CALL
                amount:
                  type: object
                  properties:
                    value:
                      type: number
                    currency:
                      type: string
                      enum:
                        - USD
                  required:
                    - value
                    - currency
              required:
                - type
                - amount
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - PER_RESULT
                amount:
                  type: object
                  properties:
                    value:
                      type: number
                    currency:
                      type: string
                      enum:
                        - USD
                  required:
                    - value
                    - currency
                flatFee:
                  type: object
                  properties:
                    value:
                      type: number
                    currency:
                      type: string
                      enum:
                        - USD
                  required:
                    - value
                    - currency
              required:
                - type
                - amount
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - METERED
                amount:
                  type: object
                  properties:
                    value:
                      type: number
                    currency:
                      type: string
                      enum:
                        - USD
                  required:
                    - value
                    - currency
                per:
                  type: object
                  properties:
                    unit:
                      type: string
                      enum:
                        - MINUTE
                        - DAY
                        - MONTH
                    count:
                      type: integer
                      exclusiveMinimum: 0
                  required:
                    - unit
                    - count
              required:
                - type
                - amount
                - per
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - PER_UNIT
                amount:
                  type: object
                  properties:
                    value:
                      type: number
                    currency:
                      type: string
                      enum:
                        - USD
                  required:
                    - value
                    - currency
                per:
                  type: number
                unit:
                  type: string
                  enum:
                    - token
                    - character
                    - second
                    - image
                    - credit
                    - result
                    - gb-month
                    - step
                    - byte
                    - url
                    - page
                    - cent
              required:
                - type
                - amount
                - per
                - unit
        selectors:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              key:
                type: string
              in:
                type: string
                enum:
                  - body
                  - queryParam
                  - pathParam
                  - output
              offset:
                type: integer
                minimum: 0
            required:
              - label
              - key
              - in
        variants:
          type: array
          items:
            type: object
            properties:
              when:
                type: object
                additionalProperties:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
              price:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_CALL
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                    required:
                      - type
                      - amount
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_RESULT
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      flatFee:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                    required:
                      - type
                      - amount
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - METERED
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      per:
                        type: object
                        properties:
                          unit:
                            type: string
                            enum:
                              - MINUTE
                              - DAY
                              - MONTH
                          count:
                            type: integer
                            exclusiveMinimum: 0
                        required:
                          - unit
                          - count
                    required:
                      - type
                      - amount
                      - per
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_UNIT
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      per:
                        type: number
                      unit:
                        type: string
                        enum:
                          - token
                          - character
                          - second
                          - image
                          - credit
                          - result
                          - gb-month
                          - step
                          - byte
                          - url
                          - page
                          - cent
                    required:
                      - type
                      - amount
                      - per
                      - unit
              label:
                type: string
            required:
              - when
              - price
        tiers:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              when:
                type: object
                additionalProperties:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
              selector:
                type: object
                properties:
                  label:
                    type: string
                  key:
                    type: string
                  in:
                    type: string
                    enum:
                      - body
                      - queryParam
                      - pathParam
                      - output
                  offset:
                    type: integer
                    minimum: 0
                required:
                  - label
                  - key
                  - in
              price:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_CALL
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                    required:
                      - type
                      - amount
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_RESULT
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      flatFee:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                    required:
                      - type
                      - amount
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - METERED
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      per:
                        type: object
                        properties:
                          unit:
                            type: string
                            enum:
                              - MINUTE
                              - DAY
                              - MONTH
                          count:
                            type: integer
                            exclusiveMinimum: 0
                        required:
                          - unit
                          - count
                    required:
                      - type
                      - amount
                      - per
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PER_UNIT
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                          currency:
                            type: string
                            enum:
                              - USD
                        required:
                          - value
                          - currency
                      per:
                        type: number
                      unit:
                        type: string
                        enum:
                          - token
                          - character
                          - second
                          - image
                          - credit
                          - result
                          - gb-month
                          - step
                          - byte
                          - url
                          - page
                          - cent
                    required:
                      - type
                      - amount
                      - per
                      - unit
            required:
              - label
              - price
      required:
        - type
        - amount
      description: >-
        User-facing price (markup applied; on authenticated calls, your
        workspace's contract too).
    OfferBlock:
      type: object
      properties:
        label:
          type: string
          description: >-
            Short text — the chip (e.g. "50% off"; default "Promotion" / "Free
            tier").
        regularEndpoint:
          type: string
          description: >-
            The regular endpoint this is an offer of (same provider, regular
            price, none of this offer's `limits`), e.g. `/search`. Absent when
            the provider sells only this offer.
        limits:
          type: string
          description: >-
            Per-workspace rate limits and any other limitations, e.g. "30/min,
            500/hour per workspace."
        listPrice:
          allOf:
            - $ref: '#/components/schemas/PublicPrice'
            - description: The regular price (struck through) — promotions only.
      required:
        - label
      description: >-
        Present ONLY on an OFFER: a copy of a regular endpoint sold on other
        terms — a free tier (tag `free`, $0, permanent, tighter limits) or a
        promotion (tag `promotion`, lower price, time-limited). Never both.
    Alternative:
      type: object
      properties:
        endpoint:
          type: string
          description: >-
            The alternative's endpoint path (same provider), e.g.
            `/free/search`.
        label:
          type: string
          description: Short text, e.g. "50% off", "Free tier", "Regular price".
        tags:
          type: array
          items:
            type: string
          description: Public tags, e.g. `free`, `promotion`, `no-markup`.
        price:
          allOf:
            - $ref: '#/components/schemas/PublicPrice'
            - description: >-
                Its price (markup and your workspace's contract, if any,
                applied).
        limits:
          type: string
          description: >-
            Per-workspace rate limits and any other limitations, e.g. "30/min,
            500/hour per workspace."
      required:
        - endpoint
        - label
        - tags
        - price
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Monid API key
      x-aep-authentication-method: api-key

````

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