{"openapi":"3.1.0","info":{"title":"OWN eSIM Public Agent API","version":"1.0.0","description":"Keyless retail API for AI agents to browse Basic and Premium eSIM options at ownesim.com storefront prices, create a Stripe Checkout Session (api-order), and poll for install details. Customer-facing lines are Basic | Premium only (never name suppliers)."},"servers":[{"url":"https://ownesim.com/api/agent"},{"url":"https://klrobisiksijffwkqyhg.supabase.co/functions/v1/public-agent-api"}],"paths":{"/destinations":{"get":{"operationId":"search_destinations","summary":"Resolve a country, region, or country mix","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}]}},"/options":{"get":{"operationId":"get_bundle_options","summary":"List Basic and Premium options with retail prices + usage estimates (customer_line only)","parameters":[{"name":"countries","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated ISO2"},{"name":"days","in":"query","schema":{"type":"integer"}},{"name":"data_mb","in":"query","schema":{"type":"integer"}}]}},"/perks":{"get":{"operationId":"compare_lines","summary":"Basic vs Premium perks (customer-facing)"}},"/quote":{"post":{"operationId":"quote_order","summary":"Price a selected option × quantity (quote valid 30 minutes)"}},"/checkout":{"post":{"operationId":"create_checkout","summary":"Create api-order + one-time Stripe Checkout Session (requires confirm:true)"}},"/orders/status":{"get":{"operationId":"get_order_status","summary":"Poll payment + provisioning; returns install payload when ready","parameters":[{"name":"order_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"status_token","in":"query","required":true,"schema":{"type":"string"}}]}},"/account/verify":{"post":{"operationId":"verify_customer","summary":"Authenticate existing customer with email + ICCID; returns session_token (2h)"}},"/account/esims":{"get":{"operationId":"list_esims","summary":"List eSIMs for the verified account"}},"/account/esims/status":{"get":{"operationId":"get_esim_status","summary":"Live status + usage for one owned ICCID","parameters":[{"name":"iccid","in":"query","required":true,"schema":{"type":"string"}}]}},"/account/orders":{"get":{"operationId":"get_order_history","summary":"Paid order history for the verified email"}},"/account/topup/quote":{"post":{"operationId":"quote_topup","summary":"Quote a top-up for an owned ICCID"}},"/account/topup/checkout":{"post":{"operationId":"create_topup_checkout","summary":"Stripe Checkout for top-up (confirm:true + expected total)"}},"/account/login-link":{"post":{"operationId":"send_login_link","summary":"Email a website login link (generic response)"}},"/openapi.json":{"get":{"summary":"This OpenAPI document"}}}}