Skip to content

API Reference

The spec covers public storefront and partner routes only. Admin operator routes use Hono RPC (EsimApiType) and are documented internally under Internal → Full-stack edge stack.

Download or browse: openapi.json

Regenerate after route changes:

Terminal window
pnpm --filter @traveler-labs/esim-api run openapi:generate

Commit both workers/esim-api/openapi.json and apps/docs/public/openapi.json.

MethodPathTag
GET/configconfig
GET/productscatalog
GET/products/{slug}catalog
POST/ordersorders
GET/orders/{id}orders
POST/campaigns/{code}/redeemcampaigns
GET/esims/{id}esims
GET/esims/{id}/usageesims
POST/esims/{id}/topupesims
POST/esims/{id}/refund-requestesims
MethodPathAuth header
POST/ordersX-Partner-Api-Key
POST/orders/bulkX-Partner-Api-Key
GET/orders/{id}X-Partner-Api-Key

Admin UI uses typed Hono RPC via hc<EsimApiType> (worker origin) or hc<EsimAdminRoutesType> with base URL /api/v1/admin. Cross-package inference requires a single boundary cast in apps/admin/src/lib/rpc-admin.ts; route types are exported as EsimAdminRoutesType / EsimAdminRpc from workers/esim-api/src/rpc-types.ts.