API 參考
為已批准意圖簽發 x402 執行授權
為已批准意圖簽發 x402 執行授權介面說明。查閱 StableOps Agent Payments 的鑑權範圍、路徑與請求參數、欄位校驗、回應結構、環境限制和常見錯誤處理要求,將該介面安全接入管理後台、Agent 執行時或自動化流程。
POST
/v1/agent-payments/runtime/intents/{intentId}/authorizationAuthorization
agentKey AuthorizationBearer <token>
Paste the Agent Key bound to one payment agent. Agent Keys only work on Runtime endpoints.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/agent-payments/runtime/intents/{intentId}/authorization" \ -H "Content-Type: application/json" \ -d '{ "resource_url": "http://example.com", "requirements": { "x402_version": 2, "scheme": "exact", "network": "string", "asset": "string", "pay_to": "string", "max_amount_atomic": "string", "max_timeout_seconds": 1, "extra": { "property1": null, "property2": null } } }'{
"intent_id": "string",
"authorization_id": "string",
"grant": "string"
}Empty
這篇文件怎麼樣?
最後更新