确认变更
使用2个必需的请求头,确认相同的已准备输入。其他发布审核和人工批准规则仍然适用。200响应也可能包含ok:false;工作已受理或已定时,不代表已经发布。JSON请求上限为65,536字节。
POST
/api/v1/tools/{tool}/confirm授权
AuthorizationBearer令牌 · header必需具有限定权限范围的Influence API密钥,或受支持的OAuth访问令牌。不要将凭据放入URL或工具输入。
路径参数
toolstring必需GET /api/v1/tools返回的工具名称。发现结果会按此凭据的权限筛选;存在结构定义不代表工具可用。
请求头参数
X-Publish-ConfirmationConfirmationCapability必需prepare返回的confirmationCapability原值。仅通过此请求头,在expiresAt之前,连同相同的输入一起发送。
最小长度:32 · 最大长度:4096 · 匹配^[A-Za-z0-9._~-]+$
Idempotency-KeyIdempotencyKey必需调用方生成的重试标识。响应结果不确定时,请保留此幂等键、确认凭据和输入。
最小长度:16 · 最大长度:200 · 匹配^[A-Za-z0-9._:-]+$
请求体
必需application/jsoninputobject必需响应
200
工具结果;请检查ok和error。
仅满足以下一项:
object
okboolean必需outputJsonValue | null必需展开属性收起属性
至少满足以下一项:
string
stringnumber
numberboolean
booleannull
nullJsonValue[]
JsonValue类型的数组
循环引用JsonValue。
object
objecttoolNamestring必需允许值:
adAuditQuoteadAuditStartadAuditGetadAuditListsearchfetchprofileGetconnectionStatusGetaccountListcampaignGetcampaignListcampaignDraftSavemediaListmediaImportmediaUploadCreatemediaUploadPartmediaUploadCompletemediaUploadGetmediaUploadAbortmediaGetcampaignReviewcampaignReviewGetcampaignReviewExecutecampaignScheduleBatchReviewcampaignScheduleBatchExecutescheduleListbrandContextGetinsightsAccountListinsightsPostListinsightsRefreshcampaignPlanGetcampaignPlanGenerateimageGenerationQuoteimageGenerationStartimageGenerationListintegrationListgroupListintegrationSchemadevtoOrganizationListdevtoTagListdiscordChannelListdiscourseCategoryListdiscourseTagListdiscourseTopicSearchdribbbleTeamListghostAuthorListghostNewsletterListghostTagListghostTierListhashnodePublicationListlemmyCommunitySearchlistmonkListsGetlistmonkTemplateListmattermostChannelListmeweGroupListpinterestBoardListredditSubredditRequirementsGetredditSubredditSearchslackChannelListteamsChannelListtiktokCreatorInfoGetvkDestinationListwhopCompanyListwhopExperienceListwordpressCategoryListwordpressPostTypeListwordpressTagListwrapcastChannelSearchintegrationSchedulePostToolpostsListToolpostSettingsToolToolError
errorobject必需展开属性收起属性
codestring必需允许值:
AI_SCHEDULING_LIMIT_REACHEDAI_SCHEDULING_UNAVAILABLEINVALID_INPUTFORBIDDENNOT_FOUNDCONFLICTFEATURE_DISABLEDCONFIRMATION_REQUIREDCONFIRMATION_INVALIDUPSTREAM_FAILEDNEEDS_REVIEWINTERNALmessagestring必需最小长度:1 · 最大长度:2048
retryableboolean必需okboolean必需toolNamestring必需允许值:
adAuditQuoteadAuditStartadAuditGetadAuditListsearchfetchprofileGetconnectionStatusGetaccountListcampaignGetcampaignListcampaignDraftSavemediaListmediaImportmediaUploadCreatemediaUploadPartmediaUploadCompletemediaUploadGetmediaUploadAbortmediaGetcampaignReviewcampaignReviewGetcampaignReviewExecutecampaignScheduleBatchReviewcampaignScheduleBatchExecutescheduleListbrandContextGetinsightsAccountListinsightsPostListinsightsRefreshcampaignPlanGetcampaignPlanGenerateimageGenerationQuoteimageGenerationStartimageGenerationListintegrationListgroupListintegrationSchemadevtoOrganizationListdevtoTagListdiscordChannelListdiscourseCategoryListdiscourseTagListdiscourseTopicSearchdribbbleTeamListghostAuthorListghostNewsletterListghostTagListghostTierListhashnodePublicationListlemmyCommunitySearchlistmonkListsGetlistmonkTemplateListmattermostChannelListmeweGroupListpinterestBoardListredditSubredditRequirementsGetredditSubredditSearchslackChannelListteamsChannelListtiktokCreatorInfoGetvkDestinationListwhopCompanyListwhopExperienceListwordpressCategoryListwordpressPostTypeListwordpressTagListwrapcastChannelSearchintegrationSchedulePostToolpostsListToolpostSettingsTool400
请求无效。不接受查询参数。工具验证失败时可能使用工具错误封装结构。
至少满足以下一项:
TransportError
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需ToolError
errorobject必需展开属性收起属性
codestring必需允许值:
AI_SCHEDULING_LIMIT_REACHEDAI_SCHEDULING_UNAVAILABLEINVALID_INPUTFORBIDDENNOT_FOUNDCONFLICTFEATURE_DISABLEDCONFIRMATION_REQUIREDCONFIRMATION_INVALIDUPSTREAM_FAILEDNEEDS_REVIEWINTERNALmessagestring必需最小长度:1 · 最大长度:2048
retryableboolean必需okboolean必需toolNamestring必需允许值:
adAuditQuoteadAuditStartadAuditGetadAuditListsearchfetchprofileGetconnectionStatusGetaccountListcampaignGetcampaignListcampaignDraftSavemediaListmediaImportmediaUploadCreatemediaUploadPartmediaUploadCompletemediaUploadGetmediaUploadAbortmediaGetcampaignReviewcampaignReviewGetcampaignReviewExecutecampaignScheduleBatchReviewcampaignScheduleBatchExecutescheduleListbrandContextGetinsightsAccountListinsightsPostListinsightsRefreshcampaignPlanGetcampaignPlanGenerateimageGenerationQuoteimageGenerationStartimageGenerationListintegrationListgroupListintegrationSchemadevtoOrganizationListdevtoTagListdiscordChannelListdiscourseCategoryListdiscourseTagListdiscourseTopicSearchdribbbleTeamListghostAuthorListghostNewsletterListghostTagListghostTierListhashnodePublicationListlemmyCommunitySearchlistmonkListsGetlistmonkTemplateListmattermostChannelListmeweGroupListpinterestBoardListredditSubredditRequirementsGetredditSubredditSearchslackChannelListteamsChannelListtiktokCreatorInfoGetvkDestinationListwhopCompanyListwhopExperienceListwordpressCategoryListwordpressPostTypeListwordpressTagListwrapcastChannelSearchintegrationSchedulePostToolpostsListToolpostSettingsTool401
Bearer凭据缺失、无效或已过期。
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需403
凭据缺少所需权限。
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需404
供程序调用的API或请求的工具不可用。
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需413
请求超过字节数限制。
errorobject必需展开属性收起属性
codestring必需允许值:
AI_SCHEDULING_LIMIT_REACHEDAI_SCHEDULING_UNAVAILABLEINVALID_INPUTFORBIDDENNOT_FOUNDCONFLICTFEATURE_DISABLEDCONFIRMATION_REQUIREDCONFIRMATION_INVALIDUPSTREAM_FAILEDNEEDS_REVIEWINTERNALmessagestring必需最小长度:1 · 最大长度:2048
retryableboolean必需okboolean必需toolNamestring必需允许值:
adAuditQuoteadAuditStartadAuditGetadAuditListsearchfetchprofileGetconnectionStatusGetaccountListcampaignGetcampaignListcampaignDraftSavemediaListmediaImportmediaUploadCreatemediaUploadPartmediaUploadCompletemediaUploadGetmediaUploadAbortmediaGetcampaignReviewcampaignReviewGetcampaignReviewExecutecampaignScheduleBatchReviewcampaignScheduleBatchExecutescheduleListbrandContextGetinsightsAccountListinsightsPostListinsightsRefreshcampaignPlanGetcampaignPlanGenerateimageGenerationQuoteimageGenerationStartimageGenerationListintegrationListgroupListintegrationSchemadevtoOrganizationListdevtoTagListdiscordChannelListdiscourseCategoryListdiscourseTagListdiscourseTopicSearchdribbbleTeamListghostAuthorListghostNewsletterListghostTagListghostTierListhashnodePublicationListlemmyCommunitySearchlistmonkListsGetlistmonkTemplateListmattermostChannelListmeweGroupListpinterestBoardListredditSubredditRequirementsGetredditSubredditSearchslackChannelListteamsChannelListtiktokCreatorInfoGetvkDestinationListwhopCompanyListwhopExperienceListwordpressCategoryListwordpressPostTypeListwordpressTagListwrapcastChannelSearchintegrationSchedulePostToolpostsListToolpostSettingsTool429
已超过速率限制,可以重试请求。
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需503
API或其上游执行环节不可用。
errorobject必需展开属性收起属性
codestring必需messagestring必需retryableboolean必需