{"uid":"cap_aPkWNeTAR2aHZMwYGOcRi","slug":"capi2-tiktok-campaign-notary-109c7033","name":"CAPI2 TikTok Campaign Notary","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/tiktok-campaign-notary","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"action":{"type":"object"},"evidence":{"type":"array","maxItems":20},"authority":{"type":"object"}}},"responseSchema":{"type":"json","example":{"decision":"block","findings":[{"code":"budget_above_authority"}],"receipt_id":"tn_...","risk_score":100}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c5rfrPQ115XsmOeWLsnts","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs authority checks and issues tamper-evident receipts for autonomous agent actions on TikTok campaigns, approving or blocking actions based on configurable policy rules.","exampleAgentPrompt":"Before my agent launches this TikTok campaign with a $5,000 budget, run an authority check against the authority policy I have configured and give me a notarized receipt — the action is 'launch_campaign' and the evidence includes the campaign brief and budget approval docs.","exampleUseCases":[{"title":"Preventing over-budget TikTok spend","prompt":"My agent is about to boost a TikTok campaign by $8,000 but I'm not sure it's within the authority limits set for it — can you run an authority check on the 'increase_budget' action with the campaign evidence and block it if the budget exceeds what's allowed?"},{"title":"Audit trail for autonomous ad actions","prompt":"I need a tamper-evident receipt proving my AI agent was authorized to pause the TikTok campaign yesterday — can you generate a notarized record of that 'pause_campaign' action with the evidence logs and authority config we have?"},{"title":"Risk-scoring a new campaign launch","prompt":"Before my agent goes live with a new TikTok influencer campaign, I want to risk-score the launch action against our authority rules and see what findings come back — flag anything that looks like a policy violation."}],"resultDescription":"Returns a JSON object with a 'decision' field (approve or block), a 'findings' array listing any policy violations or risk factors (each with a code like 'budget_above_authority'), a unique 'receipt_id' (prefixed 'tn_') serving as a tamper-evident audit record, and a numeric 'risk_score' (0-100) quantifying the risk level of the proposed action.","failureModes":["Missing or malformed 'action' object returns validation error","Evidence array exceeding 20 items rejected","Authority object misconfigured causes policy evaluation failure","Payment not completed (x402) results in 402 response before processing","Unknown action type may produce inconclusive decision","Network timeout on the Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to enforce governance policies before executing TikTok campaign actions, particularly when you need both a real-time approve/block decision AND a tamper-evident audit receipt. It is especially useful in agentic pipelines where autonomous spend or campaign changes must be validated against predefined authority limits and logged for compliance purposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:45:13.045Z","isFirstParty":false}