# CAPI2 TikTok Campaign Notary

> CAPI2 TikTok Campaign Notary is a paid API for AI agents from capi2-agent-commerce.vandurmedries.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-16).

Performs authority checks and issues tamper-evident receipts for autonomous agent actions on TikTok campaigns, approving or blocking actions based on configurable policy rules.

## Facts

- Endpoint: POST https://capi2-agent-commerce.vandurmedries.workers.dev/v1/tiktok-campaign-notary
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-tiktok-campaign-notary-109c7033
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aPkWNeTAR2aHZMwYGOcRi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability capi2-tiktok-campaign-notary-109c7033 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "action": {
   "type": "object"
  },
  "evidence": {
   "type": "array",
   "maxItems": 20
  },
  "authority": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "decision": "block",
  "findings": [
   {
    "code": "budget_above_authority"
   }
  ],
  "receipt_id": "tn_...",
  "risk_score": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-tiktok-campaign-notary-109c7033/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-agent-commerce.vandurmedries.workers.dev](https://www.zero.xyz/host/capi2-agent-commerce.vandurmedries.workers.dev/llms.txt)
