跳到文档正文
浏览和搜索
本页内容

get_pending_action

读取暂存的变更:它会做什么、是否已发送验证码,以及确认后的结果。pendingActionId 是暂存变更返回的 id。已确认但还没有结果的变更,会在再次调用 confirm_action 时完成。read 级:只需 API key。同名 MCP 工具需要 tweetstream:billing 权限范围。

POST/api/agent/actions/get_pending_action

授权

  • Authorizationstringheader必填使用 TweetStream API 密钥进行 Bearer 认证:Bearer <key>。

请求体

  • pendingActionIdstring必填a string at most 64 character(s) long

响应字段

  • outcomeobject必填
    • chargedCentsnumber可选
    • effectiveAtstring必填a string to be decoded into a Date
    • kindenum<string>必填
    • refundenum<string>可选
  • pendingActionobject必填
    • actionstring必填
    • expiresAtstring必填a string to be decoded into a Date
    • idstring必填
    • quoteobject必填
      • amountDueCentsinteger必填an integer
      • effectiveAtstring必填a string to be decoded into a Date
      • renewalobject必填
        • amountCentsinteger必填an integer
        • atstring必填a string to be decoded into a Date
        • termMonthsinteger必填an integer
      • saveOfferobject必填
        • descriptionstring必填
        • offerobject必填
    • summarystring必填
  • statusenum<string>必填

响应

  • 200成功
  • 400输入不符合该操作的 schema(INVALID_REQUEST)
  • 401API key 缺失或无效
  • 403请求带有外部 Origin
  • 404此 API key 下没有该 pendingActionId 对应的暂存变更(CONFIRMATION_NOT_FOUND)
  • 429已达到速率限制(RATE_LIMITED),请在 retryAfterSeconds 秒后重试
  • 503暂时不可用,请稍后重试