XGuard Outcomes API

Primary intent execution

Operations 5

POST /v1/execute Execute a public-source outcome #
GET /v1/capabilities List executable outcomes and exact pricing #
GET /v1/pricing Get pricing #
GET /v1/capabilities/{id} Get capabilities by id #
GET /v1/results/{payment_identifier} Get results by payment identifier #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xguardgate-com:xguardgate-com-outcomes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xguardgate-com-outcomes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XGuard Universal Paid AI Agent + Secretless Gateway…
  version: 5.1.0
  description: Describe a supported outcome. Receive normalized results or an exact x402 price, then authorize and retry the same request. Start with intent:demo for free.
servers:
- url: https://api.xguardgate.com
tags:
- name: Outcomes
  description: Primary intent execution
paths:
  /v1/execute:
    post:
      operationId: xguardExecute
      tags:
      - Outcomes
      summary: Execute a public-source outcome
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                intent:
                  oneOf:
                  - type: string
                    maxLength: 3000
                  - type: object
                  example: Get a technology news digest
                capability:
                  type: string
                  enum:
                  - extract-preview
                  - web-extraction
                  - product-offers
                  - feed-digest
                url:
                  type: string
                  format: uri
                urls:
                  type: array
                  maxItems: 3
                  items:
                    type: string
                    format: uri
                sources:
                  type: array
                  maxItems: 3
                  items:
                    oneOf:
                    - type: string
                      format: uri
                      pattern: ^https://
                    - type: object
                      required:
                      - url
                      properties:
                        url:
                          type: string
                          format: uri
                        fallbacks:
                          type: array
                          maxItems: 1
                          items:
                            type: string
                            format: uri
                      additionalProperties: false
                action:
                  type: string
                desired_action:
                  type: string
                html:
                  type: string
                  maxLength: 12288
                limit:
                  type: integer
                  minimum: 1
                  maximum: 30
                max_age_seconds:
                  type: integer
                  minimum: 0
                  maximum: 60
                  default: 0
                query:
                  type: string
                  maxLength: 200
                testnet:
                  type: boolean
                  default: false
                input:
                  type: object
                arguments:
                  oneOf:
                  - type: object
                  - type: string
                    description: JSON-encoded object, as used by tool calls
                name:
                  type: string
                tool:
                  type: string
                tool_id:
                  type: string
                toolId:
                  type: string
                function:
                  type: object
                  required:
                  - name
                  - arguments
                  properties:
                    name:
                      type: string
                    arguments:
                      type:
                      - string
                      - object
                  additionalProperties: false
                type:
                  const: function
                quantity:
                  const: 1
                units:
                  const: 1
                requests:
                  const: 1
                calls:
                  const: 1
                network:
                  type: string
                  enum:
                  - eip155:8453
                  - eip155:84532
                  - base
                  - base-sepolia
                operation:
                  type: object
                  description: Resolved read-only OpenAPI operation with URL, method and desired action; no remote spec fetching.
                http:
                  type: object
                command:
                  type: string
                task:
                  type: object
              additionalProperties: false
              description: Use intent:'demo' for a free result. Paid outcomes accept supported English/Arabic intents with public sources. Unknown jobs return repair guidance; this is not a general-purpose language model.
              examples:
              - intent: Get a technology news digest
                limit: 10
              anyOf:
              - required:
                - intent
              - required:
                - capability
              - required:
                - tool
              - required:
                - tool_id
              - required:
                - toolId
              - required:
                - name
              - required:
                - function
              - required:
                - html
              - required:
                - action
              - required:
                - desired_action
              - required:
                - command
              - required:
                - input
              - required:
                - arguments
              - required:
                - operation
              - required:
                - http
              - required:
                - task
            example:
              intent: Get a technology news digest
              limit: 10
      parameters:
      - name: X-XGuard-Quote
        in: header
        required: false
        schema:
          type: string
      - name: Payment-Signature
        in: header
        required: false
        schema:
          type: string
      - name: X-XGuard-Credit
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Normalized outcome with integrity metadata and receipt
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - intent
                - capability
                - result
                - verification
                - cost
                - receipt
                properties:
                  ok:
                    const: true
                  intent:
                    type: object
                  capability:
                    type: string
                  result:
                    type: object
                  verification:
                    type: object
                  cost:
                    type: object
                  receipt:
                    type:
                    - object
                    - 'null'
        '400':
          description: Request rejected with repair instructions; no automatic retry of ambiguous settlement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '402':
          description: Exact x402 payment requirement; preserve X-XGuard-Quote and retry identical input with Payment-Signature
          headers:
            Payment-Required:
              schema:
                type: string
            X-XGuard-Quote:
              schema:
                type: string
        '403':
          description: Unsafe target or recovery credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '409':
          description: Request rejected with repair instructions; no automatic retry of ambiguous settlement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '413':
          description: Request rejected with repair instructions; no automatic retry of ambiguous settlement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '422':
          description: Self-describing repair.suggested_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          description: Rate limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '500':
          description: Request rejected with repair instructions; no automatic retry of ambiguous settlement.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '502':
          description: No usable source; execution credit retained
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '503':
          description: Payment unavailable or settlement awaiting reconciliation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
      description: Live public-source work requires x402 payment at the exact quoted price. The supplied-HTML preview (intent:demo) is free. An unsigned request only returns a price; it does not fetch sources or settle payment.
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: dynamic
          currency: USD
          min: '0'
          max: '0.006000'
  /v1/capabilities:
    get:
      tags:
      - Outcomes
      summary: List executable outcomes and exact pricing
      responses:
        '200':
          description: Capabilities with input/output schemas and examples
      operationId: getV1Capabilities
      x-operation-id-source: derived
  /v1/pricing:
    get:
      tags:
      - Outcomes
      responses:
        '200':
          description: Exact per-execution outcome pricing
      summary: Get pricing
      x-summary-source: derived
      operationId: getV1Pricing
      x-operation-id-source: derived
  /v1/capabilities/{id}:
    get:
      tags:
      - Outcomes
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Executable capability
        '404':
          description: Unavailable with alternatives
      summary: Get capabilities by id
      x-summary-source: derived
      operationId: getV1CapabilitiesById
      x-operation-id-source: derived
  /v1/results/{payment_identifier}:
    get:
      tags:
      - Outcomes
      parameters:
      - in: path
        name: payment_identifier
        required: true
        schema:
          type: string
      - in: header
        name: X-XGuard-Quote
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Normalized outcome with integrity metadata and receipt
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - intent
                - capability
                - result
                - verification
                - cost
                - receipt
                properties:
                  ok:
                    const: true
                  intent:
                    type: object
                  capability:
                    type: string
                  result:
                    type: object
                  verification:
                    type: object
                  cost:
                    type: object
                  receipt:
                    type:
                    - object
                    - 'null'
        '202':
          description: Pending or credited operation; no reexecution
        '403':
          description: Unsafe target or recovery credential
        '404':
          description: Unknown operation
      summary: Get results by payment identifier
      x-summary-source: derived
      operationId: getV1ResultsByPaymentIdentifier
      x-operation-id-source: derived
components:
  schemas:
    PublicError:
      type: object
      required:
      - ok
      - error
      - error_code
      - request_id
      - next
      properties:
        ok:
          const: false
        error_code:
          type: string
        request_id:
          type: string
        next:
          type: object
        error:
          type: object
          required:
          - code
          - message
          - retryable
          - docs
          properties:
            code:
              type: string
            message:
              type: string
            field:
              type: string
            required_fields:
              type: array
              items:
                type: string
            retryable:
              type: boolean
            docs:
              type: string
              format: uri
            example:
              type: object