How to

Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026)

OE
Onwardic Editorial
8 min read0 views
Share
Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026)

Key Takeaways

  • OpenAPI 3.1 & Live Sandbox: Inspect all public endpoints in Scalar at /docs/api (backed by /api/openapi.json) and run live MCP tools at /docs/playground.
  • Dual Auth & Pay-Links: Use public endpoints without auth for quotes/lookup, or send owk_... Partner Keys (via /b2b/apply) to mint Stripe links via POST /api/v1/pay-links.
  • A2A & HMAC-SHA256 Webhooks: Call POST /api/a2a for task-based agent execution, and verify Enterprise webhook callbacks (order.created, order.delivered, order.refunded) via X-Onward-Signature.
  • Honest Protocol Scope: WebMCP (navigator.modelContext.registerTool()) is labeled Early Access / W3C Draft, while ACP, UCP, and live x402 payment endpoints are NOT live (discovery stubs only).

Travel startups, visa automation workflows, and AI engineering teams frequently ask how to integrate verifiable flight reservation quoting, checkout-link minting, and asynchronous order status updates without building brittle browser scrapers. Onwardic exposes a unified developer surface across OpenAPI 3.1 REST, Streamable HTTP MCP, Agent2Agent (A2A) JSON-RPC, HMAC-SHA256 webhooks, and Early Access WebMCP browser tools.

Every public endpoint, schema, and discovery linkset is indexed from /docs, /docs/api (/api/openapi.json), and /docs/agents.

Developer Hub: OpenAPI 3.1, Interactive Playground & Recipes

Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026) guide illustration
Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026): key document checks for visa application and onward travel planning.

Before writing production code, engineers have three zero-key entry points to inspect payloads and test live behavior:

  • Interactive REST Reference (/docs/api): Rendered via Scalar directly from /api/openapi.json, documenting request/response models for GET /api/services, POST /api/quote, POST /api/pricing/quote, GET /api/orders/lookup, GET /api/track, POST /api/v1/pay-links, and /api/b2b/*.
  • Live Browser Playground (/docs/playground): Pick any read-only MCP tool, edit JSON arguments inline, and inspect real responses proxied to https://onwardic.com/api/mcp without managing transport headers or API keys.
  • Cookbook Recipes (/docs/recipes): Copy-paste end-to-end JSON-RPC flows for quoting, minting Stripe Checkout links, checking order status, and grounding LLMs via help-center search.

Realistic REST & MCP cURL Examples

Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026) guide illustration
Onwardic Developer API, A2A & Early-Access WebMCP Guide (2026): keep reservation details, dates, and passenger names aligned before you travel.

Public quoting is unauthenticated (60 requests/min/IP) and computes authoritative pricing server-side — any client-supplied price fields are ignored. Notice that POST /api/quote computes stateless quotes, while POST /api/pricing/quote adds 60-second Redis caching and coupon code validation.

1. Price Quote via POST /api/quote

curl -X POST https://api.onwardic.com/api/quote \
  -H "Content-Type: application/json" \
  -d '{
    "serviceKey": "flight-itinerary",
    "flightRoute": "multicity",
    "multiCityLegs": 2,
    "urgency": "instant",
    "pnrValidity": "7d",
    "travelers": 1
  }'

Server response for 2 multi-city legs ($18) + Instant (+$5) + 7-day Extended Validity (+$8 flat/order):

{
  "subtotal": 31,
  "discount": 0,
  "total": 31,
  "currency": "USD",
  "breakdown": {
    "routeBase": 18,
    "perTraveler": 18,
    "urgencyFlat": 5,
    "urgencyAdditional": 0,
    "validityAddon": 8
  },
  "couponApplied": null
}

2. Tool Execution via POST /api/mcp

Streamable HTTP MCP calls require POST (GET returns 405) and accept standard JSON-RPC 2.0 payloads:

curl -X POST https://api.onwardic.com/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "quote_order",
      "arguments": {
        "serviceKey": "flight-itinerary",
        "flightRoute": "return",
        "urgency": "",
        "pnrValidity": "48h",
        "travelers": 2,
        "currency": "USD"
      }
    }
  }'

That returns total: 22 ($11 return Ă— 2 travelers) and deliveryEstimate: "up to 14 hours after payment".

When your integration moves beyond quotes into creating checkout flows for travelers, Onwardic supports two clean architectures:

  • Partner API Keys (owk_...) & POST /api/v1/pay-links: Issued via /b2b/apply with zero setup fee. Pass X-API-Key: owk_... (or Authorization: Bearer owk_...) to mint prefilled Stripe Checkout links via POST /api/v1/pay-links or raise MCP/A2A place_order limits to 60 requests per 10 minutes (vs. guest limits of 10/10 min per IP and 5/10 min per email). Because checkout uses Stripe Hosted Checkout, your backend stays out of PCI scope.
  • Agent2Agent Protocol (POST /api/a2a): Multi-agent orchestrators discovering /.well-known/agent-card.json can invoke the same six skills over A2A JSON-RPC 2.0 using SendMessage with message.metadata.skillId and message.metadata.arguments, then inspect task state via GetTask, ListTasks, or CancelTask. Streaming and push notifications are intentionally declared false on the agent card so conforming clients never hit hangs.

When a partner app collects traveler details in its own UI and hands off payment to Stripe, call POST /api/v1/pay-links with your owk_... key. The server re-derives the price, stages a pending cart, and returns a live Stripe Hosted Checkout session:

curl -X POST https://api.onwardic.com/api/v1/pay-links \
  -H "X-API-Key: owk_your_partner_key" \
  -H "Content-Type: application/json" \
  -d '{
    "serviceKey": "flight-itinerary",
    "email": "traveler@example.com",
    "flightRoute": "oneway",
    "urgency": "standard",
    "pnrValidity": "48h",
    "fromIata": "LHR",
    "toIata": "BKK",
    "departureDate": "2027-01-15",
    "travelerDetails": [{ "firstName": "ALEX", "lastName": "MERCER" }]
  }'

After the customer completes payment, poll order status anonymously with both order number and booking email via GET /api/orders/lookup?orderNumber=OW-26-001655&email=traveler%40example.com (or retrieve full audit timeline and document links via GET /api/track). Note that POST /api/orders is strictly reserved for the website checkout flow — agents and partners should never send paid writes there.

A2A SendMessage JSON-RPC Example

Because Onwardic's A2A agent is explicitly tool-shaped rather than conversational, clients pass skillId and arguments inside params.message.metadata on POST /api/a2a:

{
  "jsonrpc": "2.0",
  "id": 10,
  "method": "SendMessage",
  "params": {
    "message": {
      "role": "user",
      "parts": [{ "text": "Quote a one-way flight itinerary" }],
      "metadata": {
        "skillId": "quote_order",
        "arguments": {
          "serviceKey": "flight-itinerary",
          "flightRoute": "oneway",
          "travelers": 1
        }
      }
    }
  }
}

Inspect Every Endpoint in the OpenAPI 3.1 Spec

Browse live request schemas, test REST endpoints in Scalar, or jump into the MCP Playground with zero credentials needed.

Open API Reference →

HMAC-SHA256 Webhooks & Enterprise Reseller API

For OTAs, immigration platforms, and corporate travel backends that want system-to-system order fulfillment funded by a prepaid USD wallet (bypassing per-order Stripe Checkout links), Onwardic offers the Enterprise Async Reseller API (/api/b2b/*, documented at /docs/b2b) following agency approval and a one-time $1,000 setup fee.

Enterprise agencies mint scoped b2b_live_... and sandbox b2b_test_... keys, pass Idempotency-Key headers on POST /api/b2b/orders to prevent duplicate wallet debits, and receive real-time HTTPS callbacks for events including order.created, order.processing, order.completed, order.delivered, order.cancelled, order.refunded, and webhook.test.

Every webhook request carries X-Onward-Event, X-Onward-Delivery-Id, X-Onward-Timestamp, and X-Onward-Signature (formatted t=<unix_ts>,v1=<hex> over "${timestamp}.${rawBody}" signed with your whsec_... secret):

import crypto from 'node:crypto';

export function verifyOnwardWebhook(rawBody, timestampHeader, signatureHeader, secret) {
  const match = /v1=([0-9a-f]+)/i.exec(signatureHeader || '');
  if (!match || !timestampHeader) return false;

  const ageSec = Math.abs(Math.floor(Date.now() / 1000) - Number(timestampHeader));
  if (!Number.isFinite(ageSec) || ageSec > 300) return false;

  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${timestampHeader}.${rawBody}`)
    .digest('hex');

  return crypto.timingSafeEqual(Buffer.from(match[1], 'hex'), Buffer.from(expected, 'hex'));
}

Early Access WebMCP (W3C Draft) Browser Tools

Alongside server-side MCP and REST endpoints, Onwardic ships Early Access WebMCP support — strictly labeled as a W3C Draft experimental API. Using feature detection in both an inline bootstrap script and our client layout provider, Onwardic checks for navigator.modelContext.registerTool() in experimental WebMCP-enabled browsers and registers three safe public navigation helpers:

  • view_blog_post — navigates directly to a guide by slug (e.g., /blog/multi-city-onward-ticket).
  • start_checkout — opens /order-now with service=flight-itinerary preselected.
  • track_order — opens /track with optional orderId and email query parameters prefilled.

In all standard browsers where navigator.modelContext does not exist, the registration is an immediate no-op with zero impact on human visitors or page speed.

Honest Protocol Status: What Is Live vs. Not Live

Explicit Clarification on ACP, UCP & x402 Endpoints:

Onwardic publishes machine-readable metadata documents at /.well-known/acp.json, /.well-known/ucp, and /.well-known/x402 (which explicitly declares live_402_responses: false) so automated discovery scanners can inspect our capabilities.

However, ACP, UCP, and live x402 HTTP 402 payment execution endpoints are NOT live.

Do not code clients expecting on-chain USDC/402 settlement or live ACP/UCP checkout mutations — route production transactions exclusively through MCP/A2A place_order, POST /api/v1/pay-links (Stripe Checkout), or authenticated /api/b2b/orders.

Surface / Protocol Endpoint / Well-Known Path Production Status Intended Use
REST API & OpenAPI 3.1 /api/openapi.json · /api/quote · /api/v1/pay-links Live Quotes, order lookup, pay-link minting (owk_ key)
MCP Streamable HTTP / SSE POST /api/mcp · /api/mcp/sse Live AI assistant tool execution (MCP guide)
Agent2Agent (A2A) POST /api/a2a · /.well-known/agent-card.json Live Task-based JSON-RPC agent orchestration
Enterprise B2B Reseller API /api/b2b/* + HMAC-SHA256 webhooks Live (Gated) Prepaid agency wallet & automated fulfillment (/docs/b2b)
WebMCP navigator.modelContext.registerTool() Early Access (W3C Draft) Experimental browser agent navigation helpers
ACP / UCP / Live x402 Payments /.well-known/acp.json · /ucp · /x402 Discovery Only (NOT Live) Static discovery descriptors only; payments execute via Stripe or B2B wallet

Run Live Tool Calls Without Writing Setup Code

Open the MCP Playground to execute list_services, quote_order, and lookup_order directly against production endpoints.

Launch Live Playground →

Frequently Asked Questions

1 Where is Onwardic’s OpenAPI specification and interactive REST documentation?

The live OpenAPI 3.1 JSON specification is served at /api/openapi.json, and an interactive Scalar API reference renders automatically at /docs/api. Developers can also inspect worked JSON-RPC flows at /docs/recipes and test read-only MCP tools live at /docs/playground.

2 What is the difference between owk_ Partner API Keys and b2b_live_ Enterprise Reseller Keys?

owk_ Partner API Keys raise MCP/A2A place_order rate limits (to 60 requests per 10 minutes) and authorize POST /api/v1/pay-links, which returns an unpaid Stripe Checkout URL for end travelers to pay directly. Enterprise b2b_live_ and b2b_test_ keys ($1,000 one-time onboarding setup after B2B approval) authorize /api/b2b/* endpoints that debit a prepaid USD wholesale wallet and dispatch HMAC-SHA256 webhooks.

3 Are ACP, UCP, or live HTTP 402 (x402) crypto payments active on Onwardic?

No. While discovery metadata files exist at /.well-known/acp.json, /.well-known/ucp, and /.well-known/x402 (with live_402_responses: false), ACP, UCP, and live x402 payment execution endpoints are NOT live. All production payments run through Stripe Hosted Checkout (for public/partner pay-links) or prepaid B2B agency wallets.

4 How does WebMCP (navigator.modelContext.registerTool) work on onwardic.com?

WebMCP is an experimental W3C draft (Early Access) browser capability. When navigator.modelContext.registerTool is present in supported experimental browsers, Onwardic registers three public helper tools — view_blog_post, start_checkout, and track_order — with feature detection so standard browsers execute zero extra runtime overhead.

5 How should my backend verify Onwardic HMAC-SHA256 webhooks?

Read the raw request body string, extract the timestamp from X-Onward-Timestamp and the v1 signature from X-Onward-Signature (t=<timestamp>,v1=<hex>), verify the timestamp age is within 300 seconds, and compare crypto.timingSafeEqual against an HMAC-SHA256 digest of "${timestamp}.${rawBody}" keyed with your whsec_ webhook secret.

Tagsdeveloper apiopenapi 3.1webmcpa2a protocolmcp apiwebhooks
OE

Onwardic Editorial

Helping travelers navigate international itinerary requirements, onward travel planning, and airline check-in procedures.

6 articles published
PNR-Verified Flight Reservation from

Need a Verified Flight Reservation?

Get a verified flight reservation — starting from just $7.

Book your flight reservation now → $7