Skip to main content

Agent commerce

Paid link intelligence for agents.

CLYK exposes link, route, analytics, and destination-safety data as machine-readable paid resources. Agents can pay per request with Link-backed Stripe shared payment tokens over HTTP 402. High volume teams can use a Business API key instead.

How payment works

Unpaid requests receive a 402 challenge. The agent asks Link for an approved payment credential, retries the same request, and receives data with a payment receipt. Business keys can skip per-call payment by sending Authorization.

Quote current prices
curl https://clyk.app/api/agent/v1/quote
Resolve paid link data
curl https://clyk.app/api/agent/v1/links/launch-26?include=analytics,route_intelligence
# 402 Payment Required
# WWW-Authenticate: Payment ...

# Then retry with an MPP-capable client such as link-cli mpp pay.

Endpoints

The OpenAPI spec is published at /api/agent/v1/openapi.json.

Batch resolve
curl -X POST https://clyk.app/api/agent/v1/links/resolve \
  -H "Content-Type: application/json" \
  -d '{"codes":["launch-26","pricing"],"include":["route_intelligence"]}'
Validate a destination
curl -X POST https://clyk.app/api/agent/v1/validate \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/checkout"}'
ResourcePriceDescription
link.resolve$0.05Resolve and inspect one CLYK link.
links.batch_resolve$0.25Batch resolve up to 25 CLYK links.
link.analytics$0.25Fetch paid click analytics for one CLYK link.
link.route_intelligence$0.10Fetch route rules, UTM details, and destination context.
url.validate$0.10Validate one destination URL with CLYK safety checks.

Safety rules

Password-protected links never expose destinations through paid data. Expired or inactive links return state without leaking the target URL. CLYK stores payment telemetry and receipts, never raw cards, Link credentials, SPT values, or authorization headers.

For MCP clients, start with the CLYK MCP server. For direct HTTP clients, use the OpenAPI spec and the quote endpoint. For checkout subscriptions, CLYK uses Stripe Checkout with Link-eligible payment methods.