{
  "x402Version": 2,
  "id": 28279,
  "slug": "28279",
  "resource": "https://agent402.tools/api/decide/execute",
  "description": "Run a decision's plan through Agent402: first-party steps run directly, third-party steps are paid on your behalf (paid on Base, or by credits or card) and relayed at the seller's price plus a disclosed routing fee. Priced at the plan's budget (or your maxBudgetUsd, whichever you set) less a valid execution credit; spend stops at that budget, fallbacks are tried in order, and any unspent amount comes back as a credit. A run where no step succeeds is not charged.",
  "type": "http",
  "serviceName": "Decide: execute a plan",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1788138502/bazaar-icons/478aced8e219894c.png",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "budgetUsd": {
            "type": "number"
          },
          "creditAppliedUsd": {
            "type": "number"
          },
          "decisionId": {
            "type": "string"
          },
          "leftoverCredit": {},
          "paidUsd": {
            "type": "number"
          },
          "routingFeePct": {
            "type": "integer"
          },
          "runId": {
            "type": "string"
          },
          "spentUsd": {
            "type": "number"
          },
          "status": {
            "type": "string"
          },
          "steps": {
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "runId",
          "decisionId",
          "status",
          "steps",
          "budgetUsd",
          "spentUsd",
          "paidUsd",
          "creditAppliedUsd",
          "routingFeePct"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "creditToken": "dc_...",
            "decisionId": "dec_2b1c9e0f4a7d4c3e9b8a1f00",
            "maxBudgetUsd": 0.05
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "budgetUsd": 0.02,
            "creditAppliedUsd": 0.02,
            "decisionId": "dec_…",
            "leftoverCredit": null,
            "paidUsd": 0.001,
            "routingFeePct": 5,
            "runId": "run_…",
            "spentUsd": 0.02,
            "status": "complete",
            "steps": [
              {
                "costUsd": 0.02,
                "result": {},
                "status": "ok",
                "step": 1,
                "tool": {
                  "firstParty": true,
                  "seller": "agent402",
                  "slug": "search"
                }
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "creditToken": {
                    "description": "executionCredit.token from that decision (optional)",
                    "type": "string"
                  },
                  "decisionId": {
                    "description": "From POST /api/decide",
                    "type": "string"
                  },
                  "maxBudgetUsd": {
                    "description": "Spend ceiling for the run (default: the plan's estimate via Agent402)",
                    "type": "number"
                  },
                  "params": {
                    "description": "Per-step params overriding the plan's exampleParams, keyed by step number",
                    "type": "object"
                  }
                },
                "required": [
                  "decisionId"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "budgetUsd": {
                    "type": "number"
                  },
                  "creditAppliedUsd": {
                    "type": "number"
                  },
                  "decisionId": {
                    "type": "string"
                  },
                  "leftoverCredit": {},
                  "paidUsd": {
                    "type": "number"
                  },
                  "routingFeePct": {
                    "type": "integer"
                  },
                  "runId": {
                    "type": "string"
                  },
                  "spentUsd": {
                    "type": "number"
                  },
                  "status": {
                    "type": "string"
                  },
                  "steps": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "runId",
                  "decisionId",
                  "status",
                  "steps",
                  "budgetUsd",
                  "spentUsd",
                  "paidUsd",
                  "creditAppliedUsd",
                  "routingFeePct"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_b4aw4uzd"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "agents",
    "execute",
    "planning",
    "router",
    "x402",
    "bazaar",
    "builder-code",
    "payment-identifier"
  ],
  "sourceHost": "agent402.tools",
  "lastUpdated": "2026-10-02T01:27:07.637Z",
  "quality": {
    "calls30d": 147,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-02T01:27:17.179Z"
  },
  "metadata": {
    "serviceName": "Decide: execute a plan",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1788138502/bazaar-icons/478aced8e219894c.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "creditToken": "dc_...",
              "decisionId": "dec_2b1c9e0f4a7d4c3e9b8a1f00",
              "maxBudgetUsd": 0.05
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "budgetUsd": 0.02,
              "creditAppliedUsd": 0.02,
              "decisionId": "dec_…",
              "leftoverCredit": null,
              "paidUsd": 0.001,
              "routingFeePct": 5,
              "runId": "run_…",
              "spentUsd": 0.02,
              "status": "complete",
              "steps": [
                {
                  "costUsd": 0.02,
                  "result": {},
                  "status": "ok",
                  "step": 1,
                  "tool": {
                    "firstParty": true,
                    "seller": "agent402",
                    "slug": "search"
                  }
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "creditToken": {
                      "description": "executionCredit.token from that decision (optional)",
                      "type": "string"
                    },
                    "decisionId": {
                      "description": "From POST /api/decide",
                      "type": "string"
                    },
                    "maxBudgetUsd": {
                      "description": "Spend ceiling for the run (default: the plan's estimate via Agent402)",
                      "type": "number"
                    },
                    "params": {
                      "description": "Per-step params overriding the plan's exampleParams, keyed by step number",
                      "type": "object"
                    }
                  },
                  "required": [
                    "decisionId"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "budgetUsd": {
                      "type": "number"
                    },
                    "creditAppliedUsd": {
                      "type": "number"
                    },
                    "decisionId": {
                      "type": "string"
                    },
                    "leftoverCredit": {},
                    "paidUsd": {
                      "type": "number"
                    },
                    "routingFeePct": {
                      "type": "integer"
                    },
                    "runId": {
                      "type": "string"
                    },
                    "spentUsd": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string"
                    },
                    "steps": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "runId",
                    "decisionId",
                    "status",
                    "steps",
                    "budgetUsd",
                    "spentUsd",
                    "paidUsd",
                    "creditAppliedUsd",
                    "routingFeePct"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_b4aw4uzd"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent402.tools",
    "manifest_name": "agent402.tools",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "budgetUsd": 0,
      "creditAppliedUsd": 0,
      "decisionId": "string",
      "leftoverCredit": null,
      "paidUsd": 0,
      "routingFeePct": 0,
      "runId": "string",
      "spentUsd": 0,
      "status": "string",
      "steps": [
        {}
      ]
    },
    "type": "string"
  }
}