AgentVerify Agent API

OpenAPI contract · Create credentials · Current plans

# AgentVerify agent quickstart

AgentVerify checks whether evidence URLs were supplied and whether your stated cost is within your stated budget. It does not fetch sources or verify factual claims. Every result requires human review.

API base: https://agentverify-customers.pages.dev

1. The workspace owner signs in at https://customers.citevella.com/customer/ and creates a workspace. In Agent credentials, create a named key. Enable purchasing only if delegating subscription Checkout creation. Save the key immediately: it is shown once. No subscription is required to provision a key.
2. GET /api/v1/catalog without authentication for current prices, currency, renewal interval, included usage, live/sandbox mode and availability. Plan ID team is displayed as Pro in the workspace. Live purchasing is restricted to the California pilot; the caller must originate in US-CA. The catalog is the price source; do not guess prices.
3. POST /api/v1/checkout with a purchase-enabled bearer key and {"plan":"starter"} or {"plan":"team"}. A successful response has status=requires_action and payment_action.url. Pass that Stripe-hosted URL to the authorized payer or a payment-capable client. This is agent-initiated purchasing with a hosted payment handoff, not fully autonomous settlement. There is no x402/USDC payment support. Card data must never be sent to AgentVerify.
4. GET /api/v1/account with your bearer key every 15 seconds. Payment return URLs do not grant access. Wait for paid_access=true after signed webhook processing and reconciliation. Pending/failed/canceled/expired subscriptions do not allow paid use. An existing subscription is managed in the workspace through Manage subscription; duplicate purchasing returns 409.
5. POST /api/v1/agent-review with bearer key, application/json and a unique Idempotency-Key (12–128 letters, digits, underscore or hyphen). Retrying the exact same JSON body with the same key replays the result without another successful usage reservation. Do not change the payload under that key. Idempotency is tenant scoped. Concurrent requests may return 503; retry with the same key and bounded backoff.
6. DELETE /api/v1/account revokes the current key immediately. The owner can list/create/revoke all workspace keys using /api/customer-agent-keys or the workspace UI. Revoked keys cannot call account, checkout or screening. Revoking a key does not cancel a subscription; use Manage subscription.

## Credential provisioning API
GET, POST, DELETE /api/customer-agent-keys require a cryptographically verified customer Access JWT (Cf-Access-Jwt-Assertion header) or signed CF_Authorization session cookie and an owner membership. POST accepts {"label":"My research agent","allow_purchases":false}; response includes api_key once. DELETE accepts {"key_id":"..."}. Tenants, subjects and prices are always server derived. At most 20 active keys per workspace. Use a new key and revoke the old one for rotation. Keys grant screening, account-status and self-revocation access; purchase permission is explicit and cannot be upgraded by the agent.

## Screening example
```sh
curl https://agentverify-customers.pages.dev/api/v1/agent-review \
  -H "Authorization: Bearer $AGENTVERIFY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: research-report-0001' \
  --data '{"title":"Research brief","deliverable":"Draft ready for review","evidence_urls":["https://www.iana.org/domains/reserved"],"estimated_cost_cents":10,"budget_cents":100}'
```

## Hosted TableCheck — same paid workspace and quota
Check catalog capabilities.tablecheck before use. POST /api/v1/tablecheck uses the same bearer key, active subscription and Idempotency-Key rules as structural screening. A new table request counts as one shared plan unit, whether it passes or finds inconsistencies; an idempotent replay uses no additional unit. Starter includes 100 total new checks/period, Pro includes 1,000, shared across structural screening, TableCheck and workspace screening. No automatic overages or extra add-on charge.

JSON input is exactly {rows,declared_total,currency}; each row is exactly {id,quantity,unit_price,line_total}. All quantities and amounts are strings. Nonnegative whole quantities up to six digits; amounts up to nine whole digits and two fractional digits; USD/EUR/GBP; 1–100 rows; max 60,000 UTF-8 bytes. The hosted endpoint accepts JSON only. For CSV conversion and free local execution: https://citevella.com/tablecheck/integrate/

Example (fictional data):
curl https://agentverify-customers.pages.dev/api/v1/tablecheck \
  -H "Authorization: Bearer $AGENTVERIFY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: quote-table-0001' \
  --data '{"currency":"USD","declared_total":"25.00","rows":[{"id":"line-1","quantity":"3","unit_price":"10.00","line_total":"25.00"}]}'

This returns 201, passed=false and specific line/total findings. HTTP success means the check ran, not that the table passed. Route passed=false or any non-2xx response to review; never treat a missing/failed result as approval. A 200 replay returns the same request_id and result; do not reuse a key for a new table. This idempotency avoids duplicate check charges; it does not prevent a downstream payment/email from occurring twice.

Result fields: service=TableCheck, engine_version, schema_version, preview=false, request_id, passed, row_count, currency, totals, issues, review_required=true and limitations. Stored results can be replayed with the same body/key while paid access is active and are included in the owner's data export and deletion controls. Input rows are processed for checks; the service stores result findings and a request hash, not a copy of every row. No LLM or external source retrieval is used. No source truth, tax, discount, PDF/XLSX, negative/fractional quantity or payment-approval support.

## Limits and errors
Title 1–120 characters; deliverable 1–5,000; up to 20 public HTTP/HTTPS URLs, each at most 2,048 characters; nonnegative safe-integer cent amounts. Screening body max 12,000 UTF-8 bytes; Checkout max 256 bytes. Starter includes 100 screenings per billing period; Pro (team) includes 1,000, shared with workspace checks. No automatic overage charges. 200=replay or successful account/purchase response; 201=new screening/key; 400=invalid input; 401=missing/invalid/revoked key; 403=subscription, purchase scope or region denial; 409=idempotency conflict or checkout already in progress; 413=body too large; 415=JSON required; 429=quota exhausted; 502/503=temporary provider, schema, billing-health or configuration problem. Errors are JSON {"error":"..."}. Retry transient failures with bounded exponential backoff using the same idempotency key; do not retry 401/403/409 blindly. A stored failure can reserve usage without a completed response; contact support if retries remain unsuccessful.

## Discovery and policies
OpenAPI: /openapi.json. Custom agent manifest: /.well-known/agent.json. API catalog index: /.well-known/api-catalog. LLM index: /llms.txt. Plans: /api/v1/catalog. The manifest is a discovery document, not an A2A or MCP server claim.

Terms: https://citevella.com/terms/ — Privacy: https://citevella.com/privacy/ — Support: [email protected]