Agent API
Find an endpoint, read its price, verify your key — no provider docs required
Three small, public, read-only routes and one account route let an agent choose and price a call before it spends anything. They are generated from the same code that mounts and bills every proxy, so a price shown here is the amount the ledger debits.
Install the skill (optional)
Tell your agent set up https://nativeport.ai/SKILL.md. The file is generated by the gateway and carries the workflow below, the key hand-off, and one table row per endpoint family. Prefer MCP? The same four operations are tools on https://api.nativeport.ai/mcp — see Set up with MCP. From a shell, npx nativeport@latest wraps the same calls — see Set up with CLI.
Find
GET https://api.nativeport.ai/v1/catalog?q=google%20search ranks entries by how many keywords they match, then by expected price. Omit q for the whole catalog (about forty entries).
GET /v1/catalog
Public. Cached for five minutes with a strong ETag (If-None-Match answers 304).
Each entry carries id, provider, group, methods, route, actions (wildcard families only), summary, tags, capabilities, example, price, priceLabel, expectedMicro, restrictions and docUrl. With q, each entry also carries its score.
Price shapes
Every amount is in micro-credits: 1,000,000 µc = one credit = US$1.
expectedMicro is the cost of one plain call when it can be known in advance, otherwise null.
GET /v1/catalog/{id}
Public, cached like the list. Returns { entry, request, curl }. The request.url is built against the origin you called, so it works against a local wrangler dev too. An unknown id answers 404 with { "error": "Unknown catalog id. List ids at GET /v1/catalog." }.
GET /SKILL.md
Public, text/markdown. Also served at /skill.md, and https://nativeport.ai/SKILL.md redirects here. The endpoint table inside is rendered from the catalog on every request.
GET /v1/account
Requires your bearer and passes the same gate as every proxy, so an empty balance answers the usual 402. Never debited, never cached.
The catalog and skill are read-only and carry no secrets. They are rate-limited per client IP at the edge; a 429 there means slow down, not that the gateway is unavailable.