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 Datekindenum<string>必填refundenum<string>可选
pendingActionobject必填actionstring必填expiresAtstring必填a string to be decoded into a Dateidstring必填quoteobject必填amountDueCentsinteger必填an integereffectiveAtstring必填a string to be decoded into a Daterenewalobject必填amountCentsinteger必填an integeratstring必填a string to be decoded into a DatetermMonthsinteger必填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暂时不可用,请稍后重试