# TrustDex API Key Provisioning

> TrustDex API Key Provisioning is a paid API for AI agents from trustdex.app, paid per call via x402, $5/call, status down (last checked 2026-09-16).

Issues a TrustDex x402agent API key with a 5,000-call quota in exchange for a $5 USDC payment

## Facts

- Endpoint: POST https://trustdex.app/api/v1/x402/keys
- Price: $5/call
- Payment: x402
- Status: down
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trustdex-api-key-provisioning-a2f8f0f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T2PWcB0hPm43KxL48nNCI

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 trustdex-api-key-provisioning-a2f8f0f1 -d '<json body>'
```

Example prompt: Get me a TrustDex API key so I can start calling their token safety and swap endpoints — pay the $5 USDC fee and give me the key once it's issued.

## When to prefer this

Use this endpoint when an AI agent needs programmatic, KYC-free access to TrustDex's Solana DEX, swap routing, EVM trading, or token risk-grading APIs and is willing to pay $5 USDC upfront for 5,000 calls. Prefer this over OAuth or account-based registration flows when operating in a no-account, no-KYC context and when the x402 micropayment protocol is already supported by the agent framework.

## Known failure modes

- Payment of $5 USDC not received or rejected — returns payment error, no key issued
- Malformed POST body (missing required fields type, method, bodyType, body) — returns 400 validation error
- x402 payment protocol misconfiguration — payment goes through but key not issued
- Quota already exhausted on a previously issued key — this endpoint issues a new key but does not top up existing ones
- Network or server error on trustdex.app — returns 5xx, retry required

## How this service works

TrustDex is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.

## Output

Returns a JSON object with ok: true, the plan name ('x402agent'), the quota (5,000 calls), and the API key string — the key is shown only once so must be stored immediately upon receipt.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "plan": "x402agent",
  "quota": 5000,
  "apiKey": "…shown once…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trustdex-api-key-provisioning-a2f8f0f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trustdex.app](https://www.zero.xyz/host/trustdex.app/llms.txt)
