Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: TokPortal Public Messages API
version: '2026-05-25'
description: 'Non-breaking public API contract for TokPortal developer integrations. This spec is the first generated surface for SDKs, CLI, MCP, and docs.
AI: /ai uses a separate USD wallet and quoted, permission-checked operations. Discover models and their schemas, obtain a quote, then execute with the approved maximum USD cost and an Idempotency-Key. An unavailable capability fails closed. AI endpoints do not advertise the legacy dry-run contract.
SANDBOX (non-AI endpoints): every non-GET operation accepts the `X-TokPortal-Dry-Run: true` header. A dry run runs the full validation and pricing path and stops before the first write; nothing is created, no credits are debited, no webhook fires, and no operator sees it. The response keeps the same shape and status as the real call and adds `dry_run: true`, `dry_run_notice`, and `credits_would_charge` with the real price. Errors are byte-identical to the real call: explore an operation, read its real errors, and see what it would cost BEFORE spending anything, because management credits are debited at creation and there is no refund path for those credits. Rate limits are consumed normally, a supplied Idempotency-Key is ignored rather than burned, and identifiers returned by a dry run are synthetic; reuse one in a real call and you get DRY_RUN_ID_IN_LIVE_REQUEST rather than a confusing not-found.'
servers:
- url: https://app.tokportal.com/api/ext
description: Production
security:
- ApiKeyAuth: []
tags:
# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/tokportal-com/openapi/tokportal-com-messages-api-openapi.yml