# Portproof API reference Generated from the OpenAPI document at https://api.portproof.org/docs/json. - Version: 1.0.0 - Operations: 126 - Base URL: https://api.portproof.org Portproof sells proxy traffic by the GB on two shared pools (mobile 4G/5G, and residential: a mixed peer network of opt-in devices), private mobile ports rented by term, and SMS numbers and eSIMs. This API covers all three, the shop (catalogue, cart, checkout, orders, wallet) and your account (API keys, projects, webhooks). Pool, country, rotation and session are chosen in the proxy username (`POST /v1/traffic/build-url`); the pools are shared and we do not sell fixed IP addresses. **Base URL:** `https://api.portproof.org`. There is no sandbox: every key acts on real funds. ## Authentication - **API key:** `Authorization: Bearer pk_live_…`, created in the dashboard (https://portproof.org/app/keys) or from a signed-in session with `GET /v1/projects` then `POST /v1/projects/{id}/keys`. - **Session cookie:** the `pp_session` cookie set by `POST /v1/auth/signup`, `POST /v1/auth/login` and the other sign-in routes; on POST, PUT, PATCH and DELETE also send the `pp_csrf` cookie value as `X-CSRF-Token`. - Send one of them. If both arrive, the key wins on the operations tagged ports, projects, webhooks, billing and kyb and on `GET /v1/sla/{month}`; everywhere else the cookie wins (an expired cookie is then 401 even beside a valid key). Each operation's `security` lists what it accepts (a first entry `{}` means signing in is optional). `x-scopes` lists the key scopes of which it needs any one: `[]` means a signed-in session only, `["any"]` any valid key. ## Scopes - `ports:read`: read ports, rotation logs, usage, the traffic balance and saved configurations; list projects and API keys. - `ports:write`: buy traffic and ports, read and change proxy credentials, build proxy URLs, manage saved configurations and ports, test connections; change the cart, check out, top up the wallet, cancel orders and ask for refunds; create projects, create API keys (only with scopes the calling key holds) and revoke keys. - `billing:read`: read the account, cart, orders, invoices, the wallet and ledger, refund requests and the SMS refund allowance, the referral summary and SLA reports. - `digital:read`: read SMS and eSIM prices and the reseller catalogue, owned numbers and eSIMs, messages, installation details and operations, and refresh their status; read the cart and the SMS refund allowance. - `digital:write`: buy SMS numbers and eSIMs and quote and run paid actions such as eSIM top-ups, paid from the wallet; change the cart, check out and ask for refunds. - `webhooks:write`: list, create, test and delete webhook endpoints. - `kyb:write`: legacy; reads the historical company-verification tier. The profile and organisation, the password and recovery email, sessions and linked crypto wallets change only from a signed-in session: API keys are refused there (`x-scopes: []`). ## For AI agents: sign up and start An agent can do every step over HTTP except paying: a person completes any payment page, unless the wallet already holds credit. Base URL: https://api.portproof.org. Bodies are JSON; errors are problem+json with a `code`. 1. Check the shop: `GET /v1/launch` must report `"mode": "open"`. `GET /v1/pricing` lists prices and the trial, `GET /v1/traffic/countries` the countries online now, `GET /v1/checkout/methods` the payment methods usable now. 2. Create the account: `POST /v1/auth/signup` with `{"email": "…", "password": "…"}` (password 10 to 200 characters). The answer sets the `pp_session` and `pp_csrf` cookies; keep them. 409 `email_taken` means the address already has an account: sign in with `POST /v1/auth/login`, which sets the same cookies. Use an email address the account owner reads: account recovery goes there. Confirming the email is not needed to buy, but the first confirmation signs out every session and revokes every API key made before it, so confirm first or create a new key afterwards. 3. Create an API key: `GET /v1/projects`, then `POST /v1/projects/{id}/keys` with `{"scopes": ["ports:read", "ports:write", "billing:read"]}`, the `pp_session` cookie and the header `X-CSRF-Token` set to the `pp_csrf` cookie value. The secret (`pk_live_…`) is shown once. From then on send only `Authorization: Bearer ` and no cookies: while `pp_session` is sent, the shop routes use the session and refuse writes without `X-CSRF-Token`. 4. Add funds (a person pays): `POST /v1/wallet/topup` with `{"amount_cents": n, "payment_method": "…"}` (500 to 500000 cents), using a card or crypto value from `GET /v1/checkout/methods`. The answer's `redirect_url` is a payment page that a person must complete; the API cannot pay it. Then read `GET /v1/wallet` until `balance_cents` goes up. 5. Buy GB from the wallet: `POST /v1/traffic/buy` with an `Idempotency-Key` header and `{"gb": n, "accept_terms": true}`, or `{"trial": true, "accept_terms": true}` for the trial (once per customer). Set `accept_terms` only when the account owner has accepted the terms, the acceptable-use policy and the immediate start of the service. Without a top-up: add `{"sku": "traffic-gb", "quantity": n}` or `{"sku": "traffic-trial"}` with `POST /v1/cart/items`, then call `POST /v1/checkout` with `payment_method` and `"accept_terms": true` (an `Idempotency-Key` header makes a retry safe); card and crypto return a `redirect_url` that a person pays. Private mobile ports whose SKU in `GET /v1/pricing` says `buy_via: "cart"` are bought the same way. 6. Connect: delivery runs after payment, not at once. Read `GET /v1/traffic` until `credentials` is not null; until then the builder and the test answer 409 `traffic_not_purchased`. `POST /v1/traffic/build-url` with `{"pool": "mobile" | "residential" | "best", "country": "" | "any", "rotation": "auto5" | "auto10" | "auto20" | "auto60" | "ondemand" | "sticky"}` returns the proxy `url`. `POST /v1/traffic/test` with the same body checks it through the gateway (6 per minute per organisation; it uses a few kilobytes of the balance). There is no sandbox: every key spends real money. A 429 carries `Retry-After`. ## Errors Every error is RFC 9457 `application/problem+json` with a machine `code` (and `retry_after` in seconds where waiting helps). Branch on `code`, not on `title` or `detail`. ## Idempotency Operations that declare an `Idempotency-Key` header (`x-idempotency-key`: `required` or `optional`) return the first result when the same key comes again with the same body, instead of acting twice; the header's description says who must send it. Where API keys must send it, results are kept for 24 h and the same key with a different body is 409 `idempotency_conflict`. ## Rate limits Per API key and per signed-in customer: 600 reads (GET, plus the proxy URL builders and the configuration export) and 120 writes per 5 minutes. Without a credential: 600 requests per 5 minutes per client address; a few public routes allow fewer. Responses that reach the limiter carry `X-RateLimit-Limit` and `X-RateLimit-Remaining` (a sign-in or validation error can come without them); a 429 carries `Retry-After`. ## Pagination Most lists are cursor-paginated: `?cursor=` with the previous response's `next_cursor`, and `?limit=` with a default of 50 and at most 200 unless the operation's `limit` parameter states its own default and maximum. The SMS and eSIM catalogues page with `?page=` and `?limit=` instead; the parameters of each operation are authoritative. ## Next - Guide: https://portproof.org/docs - SMS and eSIM guide: https://portproof.org/docs/sms-esim-api - Full reference for LLMs: https://portproof.org/llms-full.txt (index: https://portproof.org/llms.txt) - MCP server: `@portproof/mcp` on npm (https://www.npmjs.com/package/@portproof/mcp) ## Authentication - ApiKey: header `Authorization: Bearer `. API key `pk_live_…` sent as `Authorization: Bearer`. A key holds scopes; an operation's `x-scopes` lists the scopes of which the key needs any one. There is no sandbox: every key acts on real funds. - SessionCookie: cookie `pp_session`. Customer session cookie set by the sign-up and sign-in routes (POST /v1/auth/signup, POST /v1/auth/login); state-changing requests also send the `pp_csrf` cookie value as `X-CSRF-Token`. ## API key scopes - ports:read: 17 operations, for example GET /v1/traffic, GET /v1/traffic/connections, GET /v1/traffic/connections/{connectionId} - ports:write: 45 operations, for example GET /v1/bandwidth, POST /v1/bandwidth/{id}/regenerate, POST /v1/bandwidth/{id}/regenerate/reconcile - billing:read: 12 operations, for example GET /v1/sms/refund-allowance, GET /v1/cart, GET /v1/invoices - webhooks:write: 4 operations, for example GET /v1/webhooks, POST /v1/webhooks, DELETE /v1/webhooks/{id} - kyb:write: 1 operation, for example GET /v1/kyb - digital:read: 12 operations, for example GET /v1/digital/assets, GET /v1/digital/assets/{id}, GET /v1/digital/assets/{id}/installation - digital:write: 8 operations, for example POST /v1/digital/assets/{id}/execute, POST /v1/digital/assets/{id}/quotes, POST /v1/digital/purchases ## How to read this file Operations are grouped by product. Each starts with a heading "### METHOD /path"; paths are relative to the base URL. Each block gives the auth the operation accepts, its parameters, request body fields, success response fields and error statuses. A field line reads: name (where, required or optional): type; allowed values; constraints. Description. Nested fields are indented. A "…" marks a list that was cut short; the OpenAPI document has the rest. ## Proxy traffic by the GB Buy GB from the wallet, read the balance, build proxy URLs and manage connections on the shared pools. ### GET /v1/bandwidth Summary: Pool credentials and usage per product Operation ID: getBandwidth Auth: Session, or an API key with scope ports:write. Deprecated: yes, it still answers. Use GET /v1/traffic, which returns the balance and credentials of the traffic pools. Legacy. Use GET /v1/traffic, which returns the balance and credentials of the traffic pools. Response 200 OK (application/json): object - data (required): array of object - id (required): string - product (required): object; nested fields not listed … - host (required): string; length at least 1 - port (required): integer; above 0 - username (required): string; length at least 1 - password (required): string | null; length at least 1 - gb_purchased (required): number; at least 0 - gb_used (required): number; at least 0 - gb_remaining (required): number; at least 0 - status (required): string; one of: active, exhausted, revoked - proxy_url (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/bandwidth/{id}/regenerate Summary: Regenerate the pool password Operation ID: postBandwidthByIdRegenerate Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Deprecated: yes, it still answers. Use POST /v1/traffic/regenerate (and POST /v1/traffic/regenerate/reconcile after an uncertain change). Legacy. Use POST /v1/traffic/regenerate (and POST /v1/traffic/regenerate/reconcile after an uncertain change). Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; pattern ^[A-Za-z0-9_.:-]+$; length 1 to 200. Required from every caller: 1 to 200 letters, digits, dots, colons, underscores or hyphens. A repeat with the same key and the same body returns the first result instead of acting twice. It is checked for traffic-pool credentials; a credential of another kind regenerates without reading it. Response 200 OK (application/json): object - credential (required): object - id (required): string - product (required): object; nested fields not listed … - host (required): string; length at least 1 - port (required): integer; above 0 - username (required): string; length at least 1 - password (required): string | null; length at least 1 - gb_purchased (required): number; at least 0 - gb_used (required): number; at least 0 - gb_remaining (required): number; at least 0 - status (required): string; one of: active, exhausted, revoked - proxy_url (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/bandwidth/{id}/regenerate/reconcile Summary: Read and save the current pool password after an uncertain change Operation ID: postBandwidthByIdRegenerateReconcile Auth: Session, or an API key with scope ports:write. Deprecated: yes, it still answers. Use POST /v1/traffic/regenerate (and POST /v1/traffic/regenerate/reconcile after an uncertain change). Legacy. Use POST /v1/traffic/regenerate (and POST /v1/traffic/regenerate/reconcile after an uncertain change). Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - credential (required): object - id (required): string - product (required): object; nested fields not listed … - host (required): string; length at least 1 - port (required): integer; above 0 - username (required): string; length at least 1 - password (required): string | null; length at least 1 - gb_purchased (required): number; at least 0 - gb_used (required): number; at least 0 - gb_remaining (required): number; at least 0 - status (required): string; one of: active, exhausted, revoked - proxy_url (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic Summary: Traffic balance, expiry, credentials and purchase limits Operation ID: getTraffic Auth: Session, or an API key with any one of: ports:read, ports:write. One GB balance per organisation, usable on the mobile 4G/5G and mixed peer pool. `credentials` is null until the first purchase is fulfilled, and for an API key without the `ports:write` scope (the balance stays readable with `ports:read`). `usage` is synced from the gateway every 5 minutes. With `limits.validity_days` 0 GB never expire and `expires_at` is null; with a positive value every purchase extends `expires_at` to max(now, current expiry) + that many days. Response 200 OK (application/json): object - id (required): string | null - status (required): string; one of: none, active, exhausted, expired, suspended - gb_total (required): number; at least 0 - gb_used (required): number; at least 0 - gb_left (required): number; at least 0 - expires_at (required): string | null; format date-time - enabled (required): boolean - last_synced_at (required): string | null; format date-time - credentials (required): object | null - host (required): string; length at least 1 - http_port (required): integer; above 0 - socks_port (required): integer; above 0 - username_base (required): string; length at least 1 - password (required): string; length at least 1 - credential_state (optional): string; one of: confirmed, uncertain, observed - credential_observed_at (optional): string | null; format date-time - operation (optional): object | null - id (required): string - action (required): string - state (required): string - submitted_at (required): string | null; format date-time - observed_at (required): string | null; format date-time - error_code (required): string | null - meter (optional): object - used_mb (required): number | null; at least 0 - cap_gb (required): number | null; at least 0 - observed_at (required): string | null; format date-time - attempted_at (required): string | null; format date-time - stale (required): boolean - error_code (required): string | null - source (required): string; one of: provider_raw_pak - availability (optional): object - can_connect (required): boolean - status (required): string; one of: available, unavailable, unknown - reason (required): string | null - provider_enabled (required): boolean | null - history (optional): object - timezone (required): string; one of: UTC - source (required): string; one of: local_snapshots - coverage (required): string; one of: partial, unknown - observed_days (required): integer; at least 0 - missing_days (required): integer; at least 0 - generated_at (required): string; format date-time - usage_daily (required): array of object - date (required): string; pattern ^\d{4}-\d{2}-\d{2}$ - gb (required): number; at least 0 - limits (required): object - validity_days (required): integer; at least 0 - kyb_tier (required): string - t0_monthly_gb_cap (required): number; at least 0 - gb_bought_30d (required): number; at least 0 - gb_remaining_30d (required): number | null; at least 0 - trial_available (required): boolean - max_order_gb (required): integer; at least 1 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/build-url Summary: Build the proxy username, URL and code snippets for one connection Operation ID: postTrafficBuildUrl Auth: Session, or an API key with scope ports:write. Pool, country, rotation and session are encoded in the username; the server validates them (an ISO 3166-1 alpha-2 country or `any`, the mobile pool only in its mobile countries, session names `[a-z0-9_]`). `rotation: sticky` is a binding preference, with no reserved device or fixed IP guarantee; legacy session inputs are local aliases for saved configurations with server-generated SIDs. `url` and `snippets` contain the real password and are only served to the owning organisation; `url_masked` is safe to show. Request body (application/json, required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - session (optional): string; pattern ^[a-z0-9_]{1,64}$ - protocol (optional): string; one of: http, socks5; default http Response 200 OK (application/json): object - host (required): string; length at least 1 - port (required): integer; above 0 - protocol (required): string; one of: http, socks5 - username (required): string; length at least 1 - session (required): string | null - url (required): string; length at least 1 - url_masked (required): string; length at least 1 - snippets (required): object - curl (required): string - python (required): string - node (required): string - playwright (required): string - stock (optional): object - status (required): string; one of: observed_available, unknown - observed_at (required): string | null; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/build-urls Summary: Build up to 100 named sticky connections without buying or allocating ports Operation ID: postTrafficBuildUrls Auth: Session, or an API key with scope ports:write. Requires ports:write because results contain the owning organisation’s proxy password. Session prefixes are local aliases; each resulting saved configuration has a unique opaque SID. Repeating the same alias and settings reuses it. All use the existing balance and gateway ports. Distinct sessions do not guarantee distinct devices or IPs. Formatting consumes no GB and makes no gateway connection. Request body (application/json, required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - protocol (optional): string; one of: http, socks5; default http - count (required): integer; 1 to 100 - session_prefix (required): string; pattern ^[a-z0-9_]{1,48}$ Response 200 OK (application/json): object - connections (required): array of object; items 1 to 100 - host (required): string; length at least 1 - port (required): integer; above 0 - protocol (required): string; one of: http, socks5 - username (required): string; length at least 1 - session (required): string | null - url (required): string; length at least 1 - url_masked (required): string; length at least 1 - snippets (required): object; nested fields not listed … - stock (optional): object; nested fields not listed … - saved_connections (required): array of object; items 1 to 100 - id (required): string; format uuid - name (required): string - version (required): integer; above 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/buy Summary: Buy traffic from the wallet balance (API and MCP) Operation ID: postTrafficBuy Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Creates and pays an order for `gb` whole GB (or the one-off trial) from the wallet; the price comes from the tier table for the ordered quantity, the server determines the payable price. Optional `expected_subtotal_cents` guards the displayed subtotal before VAT: a mismatch refuses the purchase with 409 `conflict` without a debit; on replay it must match the stored order subtotal. `accept_terms: true` is required, as at checkout: it records that the customer accepts the terms and the acceptable-use policy and asks for the service to start at once (optional `terms_version` names the version shown). Requires an `Idempotency-Key` header: the same key with the same body replays the same order, the same key with a different body is 409 `idempotency_conflict`. With an API key a refused purchase is kept under its key for 24 h as well, so after fixing the cause (for example a top-up) send a new key. An API key needs the `ports:write` scope. 402 `insufficient_funds` when the wallet is too low, 403 `account_suspended` when traffic is paused on the account, 409 `trial_already_used`, 409 `launch_waitlist` while the shop is in waitlist mode. Delivery is asynchronous: the order answers `paid`, then poll `GET /v1/traffic` until `credentials` is not null (or `GET /v1/orders/{id}` until `fulfilled`); until then the builder and the test answer 409 `traffic_not_purchased`. Parameters: - Idempotency-Key (header, required): string; length 1 to 255. Required from every caller: 1 to 255 characters. A repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - gb (optional): integer; 1 to 1000 - trial (optional): boolean - expected_subtotal_cents (optional): integer; 0 to 9007199254740991 - accept_terms (required): boolean; one of: true - terms_version (optional): string; length 1 to 40 Response 201 Created (application/json): object - order (required): object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - items (required): array of object; nested fields not listed … - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - analytics_ref (optional): string | null; pattern ^[0-9a-f]{20}$ - created_at (required): string; format date-time - updated_at (required): string; format date-time - payment_id (required): string Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/connections Summary: List owned saved configurations, optionally by exact name or current SID Operation ID: getTrafficConnections Auth: Session, or an API key with any one of: ports:read, ports:write. Name and sid are mutually exclusive exact filters. Names need not be unique; retain the returned configuration ID. Only active owned records and current SIDs are returned. Parameters: - name (query, optional): string; length 1 to 100 - sid (query, optional): string; pattern ^[a-z0-9_]{1,64}$ Response 200 OK (application/json): object - connections (required): array of object - id (required): string; format uuid - name (required): string; length 1 to 100 - version (required): integer; above 0 - sid (required): string; pattern ^[a-z0-9_]{1,64}$ - settings (required): object; nested fields not listed … - ttl_minutes (required): integer | null; above 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time - retired_at (required): string | null; format date-time - legacy_compatibility (required): string; one of: existing_exports_unchanged Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/connections Summary: Save a configuration and allocate its own opaque session ID (SID) Operation ID: postTrafficConnections Auth: Session, or an API key with scope ports:write. Request body (application/json, required): object - name (required): string; length 1 to 100 - settings (required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http Response 201 Created (application/json): object - id (required): string; format uuid - name (required): string; length 1 to 100 - version (required): integer; above 0 - sid (required): string; pattern ^[a-z0-9_]{1,64}$ - settings (required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http - ttl_minutes (required): integer | null; above 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time - retired_at (required): string | null; format date-time - legacy_compatibility (required): string; one of: existing_exports_unchanged Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/connections/{connectionId} Summary: Get a saved configuration Operation ID: getTrafficConnectionsByConnectionId Auth: Session, or an API key with any one of: ports:read, ports:write. Parameters: - connectionId (path, required): string; format uuid Response 200 OK (application/json): object - id (required): string; format uuid - name (required): string; length 1 to 100 - version (required): integer; above 0 - sid (required): string; pattern ^[a-z0-9_]{1,64}$ - settings (required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http - ttl_minutes (required): integer | null; above 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time - retired_at (required): string | null; format date-time - legacy_compatibility (required): string; one of: existing_exports_unchanged Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PATCH /v1/traffic/connections/{connectionId} Summary: Rename or change a saved configuration Operation ID: patchTrafficConnectionsByConnectionId Auth: Session, or an API key with scope ports:write. Name-only changes retain the SID. Changed settings append a new version and SID. Old exported URLs are unchanged and may still bind. Parameters: - connectionId (path, required): string; format uuid Request body (application/json, required): object - name (optional): string; length 1 to 100 - settings (optional): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http - expected_version (required): integer; above 0 Response 200 OK (application/json): object - id (required): string; format uuid - name (required): string; length 1 to 100 - version (required): integer; above 0 - sid (required): string; pattern ^[a-z0-9_]{1,64}$ - settings (required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http - ttl_minutes (required): integer | null; above 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time - retired_at (required): string | null; format date-time - legacy_compatibility (required): string; one of: existing_exports_unchanged Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/traffic/connections/{connectionId} Summary: Retire a saved configuration (exported URLs keep working) Operation ID: deleteTrafficConnectionsByConnectionId Auth: Session, or an API key with scope ports:write. Retires a configuration locally. Does not release network sessions, revoke credentials, terminate sockets, or disable previously exported URLs. Parameters: - connectionId (path, required): string; format uuid Response 200 OK (application/json): object - id (required): string; format uuid - name (required): string; length 1 to 100 - version (required): integer; above 0 - sid (required): string; pattern ^[a-z0-9_]{1,64}$ - settings (required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - protocol (optional): string; one of: http, socks5; default http - ttl_minutes (required): integer | null; above 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time - retired_at (required): string | null; format date-time - legacy_compatibility (required): string; one of: existing_exports_unchanged Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/connections/{connectionId}/export Summary: Proxy URL and code snippets for a saved configuration Operation ID: postTrafficConnectionsByConnectionIdExport Auth: Session, or an API key with scope ports:write. Parameters: - connectionId (path, required): string; format uuid Request body (application/json, required): object Response 200 OK (application/json): object - host (required): string; length at least 1 - port (required): integer; above 0 - protocol (required): string; one of: http, socks5 - username (required): string; length at least 1 - session (required): string | null - url (required): string; length at least 1 - url_masked (required): string; length at least 1 - snippets (required): object - curl (required): string - python (required): string - node (required): string - playwright (required): string - stock (optional): object - status (required): string; one of: observed_available, unknown - observed_at (required): string | null; format date-time - connection_id (required): string; format uuid - configuration_version (required): integer; above 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/connections/{connectionId}/rotate Summary: Release the session of a saved configuration (new IP not guaranteed) Operation ID: postTrafficConnectionsByConnectionIdRotate Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Releases the session of the saved SID once. Requires a UUID Idempotency-Key. Acceptance does not close open connections or guarantee a different IP; an uncertain request is never sent to the network again. Parameters: - connectionId (path, required): string; format uuid - Idempotency-Key (header, required): string; format uuid; length at least 1. Required from every caller: a UUID. A repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object Response 200 OK (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Response 202 Accepted (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/connections/{connectionId}/sessions Summary: Sessions seen for a saved configuration (an observation, not proof) Operation ID: getTrafficConnectionsByConnectionIdSessions Auth: Session, or an API key with any one of: ports:read, ports:write. Reports a bounded observation for this saved SID and its stored credential only. Empty, truncated and unavailable results never prove absence or termination. Parameters: - connectionId (path, required): string; format uuid Response 200 OK (application/json): object - connection_id (required): string; format uuid - configuration_version (required): integer; above 0 - observed_at (required): string; format date-time - status (required): string; one of: observed, not_observed, unavailable - truncated (required): boolean | null - complete (required): boolean; one of: false - binding_observed (required): boolean - absence_proven (required): boolean; one of: false - active_sockets_terminated (required): boolean; one of: false Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/connections/{connectionId}/test Summary: Test a saved configuration through the gateway (uses traffic) Operation ID: postTrafficConnectionsByConnectionIdTest Auth: Session, or an API key with scope ports:write. Tests the exact saved protocol, targeting and SID using a bounded gateway connection. Consumes traffic; no endpoint or SID override is accepted. Parameters: - connectionId (path, required): string; format uuid Request body (application/json, required): object Response 200 OK (application/json): object - ok (required): boolean - exit_country (required): string | null - country_verified (required): boolean - exit_ip (required): string | null - latency_ms (required): integer | null; at least 0 - error_code (optional): string - simulated (optional): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/countries Summary: Countries with devices online now, per pool Operation ID: getTrafficCountries Auth: No credential. Reported routable device counts, cached for 30 seconds. `mobile` contains the supported mobile countries; the compatibility field `residential` contains the mixed peer pool and does not imply residential-only IPs. `GE` is Georgia (country). Exit addresses are never listed. Check status, stale and timestamp_basis: an observed empty pool is zero reported stock; unavailable data is unknown. Stale responses may retain the last valid counts. observed_at is a local successful-read time, not a provider freshness guarantee. Response 200 OK (application/json): object - mobile (required): array of object - country (required): string; length 2 to 2 - name (required): string; length at least 1 - online (required): integer; at least 0 - residential (required): array of object - country (required): string; length 2 to 2 - name (required): string; length at least 1 - online (required): integer; at least 0 - totals (required): object - mobile_online (required): integer; at least 0 - residential_online (required): integer; at least 0 - countries (required): integer; at least 0 - generated_at (required): string; format date-time - stale (required): boolean - observed_at (optional): string | null; format date-time - timestamp_basis (optional): string; one of: provider, observed, unknown - status (optional): string; one of: observed, stale, unavailable - refresh_after_seconds (optional): integer; above 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/facets Summary: Cities, states and carriers online now for one pool and country Operation ID: getTrafficFacets Auth: No credential. Parameters: - pool (query, required): string; one of: mobile, residential - country (query, required): string; pattern ^[A-Za-z]{2}$. ISO 3166-1 alpha-2 country code. `any` is refused here: facets describe one country. Response 200 OK (application/json): object - pool (required): string; one of: mobile, residential - country (required): string; length 2 to 2 - observed_at (required): string | null; format date-time - stale (required): boolean - status (required): string; one of: available, unavailable, unknown - total (required): integer | null; at least 0 - cities (required): array of object - value (required): string - label (required): string - count (required): integer; at least 0 - states (required): array of object - value (required): string - label (required): string - count (required): integer; at least 0 - carriers (required): array of object - value (required): string - label (required): string - count (required): integer; at least 0 - asns (required): array of object - value (required): integer; above 0 - count (required): integer; at least 0 - ip_types (required): array of object - value (required): string; one of: mobile, residential, datacenter - count (required): integer; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/regenerate Summary: Regenerate the proxy password Operation ID: postTrafficRegenerate Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Changes the proxy password once. Propagation and existing tunnels have no fixed revocation deadline. An uncertain outcome requires reading the current password; do not regenerate again. Parameters: - Idempotency-Key (header, required): string; pattern ^[A-Za-z0-9_.:-]+$; length 1 to 200. Required from every caller: 1 to 200 letters, digits, dots, colons, underscores or hyphens. A repeat with the same key and the same body returns the first result instead of acting twice. Response 200 OK (application/json): object - traffic (required): object - id (required): string | null - status (required): string; one of: none, active, exhausted, expired, suspended - gb_total (required): number; at least 0 - gb_used (required): number; at least 0 - gb_left (required): number; at least 0 - expires_at (required): string | null; format date-time - enabled (required): boolean - last_synced_at (required): string | null; format date-time - credentials (required): object | null; nested fields not listed … - credential_state (optional): string; one of: confirmed, uncertain, observed - credential_observed_at (optional): string | null; format date-time - operation (optional): object | null; nested fields not listed … - meter (optional): object; nested fields not listed … - availability (optional): object; nested fields not listed … - history (optional): object; nested fields not listed … - usage_daily (required): array of object; nested fields not listed … - limits (required): object; nested fields not listed … Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 500 The server could not complete the call; the `code` and `detail` say what is known (application/problem+json) ### POST /v1/traffic/regenerate/reconcile Summary: Read and save the currently observed proxy password after an uncertain change Operation ID: postTrafficRegenerateReconcile Auth: Session, or an API key with scope ports:write. Response 200 OK (application/json): object - traffic (required): object - id (required): string | null - status (required): string; one of: none, active, exhausted, expired, suspended - gb_total (required): number; at least 0 - gb_used (required): number; at least 0 - gb_left (required): number; at least 0 - expires_at (required): string | null; format date-time - enabled (required): boolean - last_synced_at (required): string | null; format date-time - credentials (required): object | null; nested fields not listed … - credential_state (optional): string; one of: confirmed, uncertain, observed - credential_observed_at (optional): string | null; format date-time - operation (optional): object | null; nested fields not listed … - meter (optional): object; nested fields not listed … - availability (optional): object; nested fields not listed … - history (optional): object; nested fields not listed … - usage_daily (required): array of object; nested fields not listed … - limits (required): object; nested fields not listed … Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 500 The server could not complete the call; the `code` and `detail` say what is known (application/problem+json) ### POST /v1/traffic/rotate-session Summary: Release one residential session so new connections select an exit again Operation ID: postTrafficRotateSession Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Requires an Idempotency-Key UUID. Only the owning traffic key and the exact selected named residential session are eligible. Credentials and targeting stay unchanged. accepted means the network acknowledged session release, not that a different exit IP was observed. Reconnect and test the selected connection. Pending or uncertain operations are recovered by ID; repeating a request never releases the session twice. One request per session per 60 seconds and six per organisation per minute. Parameters: - Idempotency-Key (header, required): string; format uuid; length at least 1. Required from every caller: a UUID. A repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - pool (required): string; one of: residential - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - session (required): string; pattern ^[a-z0-9_]{1,64}$ - protocol (optional): string; one of: http, socks5; default http Response 200 OK (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Response 202 Accepted (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/rotations/by-key/{requestKey} Summary: Read a rotation intent by its original request ID without another release Operation ID: getTrafficRotationsByKeyByRequestKey Auth: Session, or an API key with scope ports:write. Parameters: - requestKey (path, required): string; format uuid Response 200 OK (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Response 202 Accepted (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/traffic/rotations/{operationId} Summary: Read a residential session rotation outcome without repeating its release Operation ID: getTrafficRotationsByOperationId Auth: Session, or an API key with scope ports:write. Parameters: - operationId (path, required): string; format uuid Response 200 OK (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Response 202 Accepted (application/json): object - operation_id (required): string; format uuid - status (required): string; one of: pending, accepted, no_active_session, uncertain, failed - session (required): string; pattern ^[a-z0-9_]{1,64}$ - credentials_changed (required): boolean; one of: false - reconnect_required (required): boolean; one of: true - ip_change_verified (required): boolean; one of: false - cooldown_until (required): string | null; format date-time - retry_after_s (required): integer; at least 0 - retry_allowed (required): boolean - error_code (required): string | null; one of: unsupported, ambiguous_session, provider_unavailable, provider_refused, provider_rate_limited, outcome_unknown, interrupted Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/traffic/test Summary: Test a connection through the gateway (6 per minute) Operation ID: postTrafficTest Auth: Session, or an API key with scope ports:write. The server sends one request through the selected HTTP or SOCKS5 gateway, including the selected session, to its own echo endpoint (10 s timeout) and reports whether it connected, the exit address it saw and the latency. `exit_country` is a country observed for that exit address, never the requested one: when none was observed it is null and `country_verified` is false. `ok: false` carries a bounded gateway error. The test uses a few kilobytes of the balance. Request body (application/json, required): object - pool (required): string; one of: mobile, residential, best - country (required): string; pattern ^([A-Za-z]{2}|any)$ - rotation (required): string; one of: auto5, auto10, auto20, auto60, ondemand, sticky - carrier (optional): string; pattern ^[a-z0-9_]{1,64}$ - city (optional): string; pattern ^[a-z0-9_]{1,64}$ - state (optional): string; pattern ^[a-z0-9_]{1,64}$ - asn (optional): integer; at most 9999999; above 0 - ip_type (optional): string; one of: mobile, residential, datacenter - ttl_seconds (optional): integer; 60 to 2592000 - session (optional): string; pattern ^[a-z0-9_]{1,64}$ - protocol (optional): string; one of: http, socks5; default http Response 200 OK (application/json): object - ok (required): boolean - exit_country (required): string | null - country_verified (required): boolean - exit_ip (required): string | null - latency_ms (required): integer | null; at least 0 - error_code (optional): string - simulated (optional): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ## Private mobile ports Port availability and quotes, owned ports and renewals, Port details, the rotation log, credentials, the allowlist and usage. ### GET /v1/catalog/ports/{sku}/regions Summary: Regions of a Partner network port with stock and OS fingerprint (p0f) counts Operation ID: getCatalogPortsBySkuRegions Auth: Session, or an API key with any one of: ports:read, ports:write. For the product's own term. A stock report, not a reservation; counts the network does not report are null. The list is empty while region choice is not offered or the report cannot be read. Partner network ports appear only while they are on sale; organisations with early access see them when they call with their session or API key. Parameters: - sku (path, required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ Response 200 OK (application/json): object - regions (required): array of object - region_id (required): string; pattern ^[A-Za-z0-9_-]{1,64}$ - name (required): string; length 1 to 80 - stock (required): integer; at least 0 - p0f (required): integer; at least 0 - openvpn (required): integer | null; at least 0 - ipv6 (required): integer | null; at least 0 - one_time_only (required): integer | null; at least 0 - allowance_gb (required): number | null; above 0 - allowance_ports (required): integer | null; at least 0 - allowance_all (required): boolean | null - reported_at (required): string | null; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/inventory Summary: Available proven ports per site and carrier Operation ID: getInventory Auth: No credential. Parameters: - country (query, optional): string; pattern ^[A-Z]{2}$ - carrier (query, optional): string; length at least 1 Response 200 OK (application/json): object - data (required): array of object - country (required): string; pattern ^[A-Z]{2}$ - site_code (required): string; length at least 1 - operator (required): string; one of: owned, partner - carrier (required): string; length at least 1 - carrier_id (required): string - available (required): integer; at least 0 - telemetry_hours_min (optional): integer; at least 0; default 72 - waitlist (required): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/passport/public/{token} Summary: Shared port details (no credentials) Operation ID: getPassportPublicByToken Auth: No credential. Parameters: - token (path, required): string; length 8 to 128 Response 200 OK (application/json): object - port_id (required): string - generated_at (required): string; format date-time - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - operator (required): string; one of: owned, partner - evidence (optional): string; one of: signed, observed - network (optional): string; one of: own, partner - carrier (required): object - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - gateway_region (required): string | null - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - sim_contract_class (required): string; one of: prepaid, business, m2m - egress (required): object - v4 (required): string | null - v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string; format date-time - geo (required): object - country (required): string | null - region (required): string | null - city (required): string | null - sources (required): array of object; nested fields not listed … - reputation (required): object - flagged (required): boolean - hosting (required): boolean - providers (required): array of string - scored_at (required): string | null; format date-time - rotation (required): object - interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - last_30d (required): object; nested fields not listed … - uptime (required): object - d30_pct (required): number | null; 0 to 100 - d90_pct (required): number | null; 0 to 100 - probes_30d (required): integer; at least 0 - throughput (required): object - last_sample_mbps (required): number | null; at least 0 - p50_7d_mbps (required): number | null; at least 0 - usage (required): object - bytes_today (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - sessions (required): object - concurrent_now (required): integer; at least 0 - peak_24h (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - exclusivity (required): string; one of: modem+sim+credentials - receipts_url (required): string; format uri Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/ports Summary: List the ports your organisation owns Operation ID: getPorts Auth: Session, or an API key with scope ports:read. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 Response 200 OK (application/json): object - data (required): array of object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object; nested fields not listed … - operator (required): string; one of: owned, partner - listeners (required): object; nested fields not listed … - credentials (required): object | null; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object; nested fields not listed … - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null; nested fields not listed … - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null; nested fields not listed … - capabilities (optional): object | null; nested fields not listed … - renewal (optional): object | null; nested fields not listed … - rotation_url (optional): string; format uri - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports Summary: Buy a port (invoiced API-key organisations; shop accounts use the cart) Operation ID: postPorts Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Allocates one proven port for the SKU and term, charges the project and returns it in state `sold`. For API-key organisations billed by invoice. A shop account and any catalogue SKU buy through the cart (POST /v1/cart/items, then POST /v1/checkout) and get problem `use_cart` here; while ports are not on sale through the API a shop account gets `launch_waitlist`. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - term (required): string; one of: monthly, weekly, daily - quantity (optional): number; one of: 1; default 1 - carrier_id (optional): string - auto_renew (optional): boolean Response 201 Created (application/json): object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object - id (required): string - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - operator (required): string; one of: owned, partner - listeners (required): object - host (required): string; length at least 1 - http_port (required): integer; 1 to 65535 - socks_port (required): integer; 1 to 65535 - credentials (required): object | null - username (required): string; length at least 1 - password (required): string; length at least 1 - http (optional): object; nested fields not listed … - socks5 (optional): object; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object - bytes (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null - http_host (required): string; one of: ipv4, ipv6, hostname, unknown - socks5_host (required): string; one of: ipv4, ipv6, hostname, unknown - egress (required): string; one of: ipv4, ipv6, unknown - native_ipv6 (required): boolean | null - openvpn (required): boolean | null - os_profile (required): boolean | null - reported_at (required): string; format date-time - capabilities (optional): object | null - replace (required): boolean - cancel (required): boolean - allowlist (required): boolean - auto_swap (required): boolean - rotation_interval (required): boolean - password_change (required): boolean - renewal (optional): object | null - auto_renew (required): boolean - ends_at (required): string; format date-time - price_cents (required): integer; at least 0 - can_renew (required): boolean - rotation_url (optional): string; format uri Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/ports/{id} Summary: Get a port Operation ID: getPortsById Auth: Session, or an API key with scope ports:read. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object - id (required): string - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - operator (required): string; one of: owned, partner - listeners (required): object - host (required): string; length at least 1 - http_port (required): integer; 1 to 65535 - socks_port (required): integer; 1 to 65535 - credentials (required): object | null - username (required): string; length at least 1 - password (required): string; length at least 1 - http (optional): object; nested fields not listed … - socks5 (optional): object; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object - bytes (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null - http_host (required): string; one of: ipv4, ipv6, hostname, unknown - socks5_host (required): string; one of: ipv4, ipv6, hostname, unknown - egress (required): string; one of: ipv4, ipv6, unknown - native_ipv6 (required): boolean | null - openvpn (required): boolean | null - os_profile (required): boolean | null - reported_at (required): string; format date-time - capabilities (optional): object | null - replace (required): boolean - cancel (required): boolean - allowlist (required): boolean - auto_swap (required): boolean - rotation_interval (required): boolean - password_change (required): boolean - renewal (optional): object | null - auto_renew (required): boolean - ends_at (required): string; format date-time - price_cents (required): integer; at least 0 - can_renew (required): boolean - rotation_url (optional): string; format uri Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PUT /v1/ports/{id}/allowlist Summary: Replace the source-IP allowlist (max 10 CIDRs) Operation ID: putPortsByIdAllowlist Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Not available for Partner network ports (409). Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - cidrs (required): array of string; items at most 10 Response 200 OK (application/json): object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object - id (required): string - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - operator (required): string; one of: owned, partner - listeners (required): object - host (required): string; length at least 1 - http_port (required): integer; 1 to 65535 - socks_port (required): integer; 1 to 65535 - credentials (required): object | null - username (required): string; length at least 1 - password (required): string; length at least 1 - http (optional): object; nested fields not listed … - socks5 (optional): object; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object - bytes (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null - http_host (required): string; one of: ipv4, ipv6, hostname, unknown - socks5_host (required): string; one of: ipv4, ipv6, hostname, unknown - egress (required): string; one of: ipv4, ipv6, unknown - native_ipv6 (required): boolean | null - openvpn (required): boolean | null - os_profile (required): boolean | null - reported_at (required): string; format date-time - capabilities (optional): object | null - replace (required): boolean - cancel (required): boolean - allowlist (required): boolean - auto_swap (required): boolean - rotation_interval (required): boolean - password_change (required): boolean - renewal (optional): object | null - auto_renew (required): boolean - ends_at (required): string; format date-time - price_cents (required): integer; at least 0 - can_renew (required): boolean - rotation_url (optional): string; format uri Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PUT /v1/ports/{id}/auto-renew Summary: Switch auto-renew on or off Operation ID: putPortsByIdAutoRenew Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Off means the port ends at the end of its term. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - enabled (required): boolean Response 200 OK (application/json): object - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/ports/{id}/billing Summary: What the port has cost and what it will cost Operation ID: getPortsByIdBilling Auth: Session, or an API key with scope ports:read. The order that bought the port (with its invoice once paid), every renewal and refund of its term, the total paid so far, the next automatic renewal (when it runs, the price, whether the wallet covers it) and what happens when the term ends. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - port_id (required): string - currency (required): string; one of: EUR, USD - term (required): string | null; one of: monthly, weekly, daily - term_started_at (required): string | null; format date-time - term_ends_at (required): string | null; format date-time - paid_cents (required): integer; at least 0 - order (required): object | null - id (required): string - number (required): string; length at least 1 - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - paid_at (required): string | null; format date-time - invoice_url (required): string | null - entries (required): array of object - id (required): string; length at least 1 - kind (required): string; one of: purchase, renewal, refund - state (required): string; one of: paid, awaiting_payment, confirming, failed, refunded, cancelled - amount_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - paid_from (required): string | null; one of: wallet, crypto, invoice, other - at (required): string; format date-time - order (required): object | null; nested fields not listed … - next_renewal (required): object | null - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - from (required): string; format date-time - until (required): string; format date-time - paid_from (required): string; one of: wallet, crypto, invoice, other - wallet_balance_cents (required): integer | null - covered (required): boolean | null - at_expiry (required): string; one of: renews, ends, ended - grace_hours (required): integer; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/cancel Summary: Cancel a port Operation ID: postPortsByIdCancel Auth: Session, or an API key with scope ports:write. Idempotency-Key: required A paid first-month pro-rata cancellation requires an email-confirmed refund request and owner review through /refund-requests. Other cancellations switch auto-renew off and the port runs to term end. This endpoint cannot issue a customer-requested refund. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - ends_at (required): string; format date-time - refund_cents (required): integer; at least 0 Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PUT /v1/ports/{id}/credentials Summary: Regenerate the proxy password Operation ID: putPortsByIdCredentials Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Also regenerates the per-port rotation URL token. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - regenerate (required): boolean; one of: true Response 200 OK (application/json): object - username (required): string; length at least 1 - password (required): string; length at least 1 - version (required): integer; at least 1 Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/ports/{id}/openvpn Summary: Download the OpenVPN profile of a partner network port (.ovpn) Operation ID: getPortsByIdOpenvpn Auth: Session, or an API key with scope ports:write. Answers the profile file (`application/x-openvpn-profile`) as an attachment. Log in with the port username and password. Partner network ports that are active only. Some ports issue the profile once: a second download answers 409 and support issues a new one. A profile still being prepared answers 409 with `Retry-After`. Parameters: - id (path, required): string; length at least 1 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/ports/{id}/passport Summary: Port details (API object `passport`) Operation ID: getPortsByIdPassport Auth: Session, or an API key with scope ports:read. `?format=json` (default) returns the port details document; `?format=card` returns a self-contained `text/html` share card. Parameters: - format (query, optional): string; one of: json, card; default json - id (path, required): string; length at least 1 Response 200 OK (application/json): object - port_id (required): string - generated_at (required): string; format date-time - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - operator (required): string; one of: owned, partner - evidence (optional): string; one of: signed, observed - network (optional): string; one of: own, partner - carrier (required): object - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - gateway_region (required): string | null - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - sim_contract_class (required): string; one of: prepaid, business, m2m - egress (required): object - v4 (required): string | null - v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string; format date-time - geo (required): object - country (required): string | null - region (required): string | null - city (required): string | null - sources (required): array of object; nested fields not listed … - reputation (required): object - flagged (required): boolean - hosting (required): boolean - providers (required): array of string - scored_at (required): string | null; format date-time - rotation (required): object - interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - last_30d (required): object; nested fields not listed … - uptime (required): object - d30_pct (required): number | null; 0 to 100 - d90_pct (required): number | null; 0 to 100 - probes_30d (required): integer; at least 0 - throughput (required): object - last_sample_mbps (required): number | null; at least 0 - p50_7d_mbps (required): number | null; at least 0 - usage (required): object - bytes_today (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - sessions (required): object - concurrent_now (required): integer; at least 0 - peak_24h (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - exclusivity (required): string; one of: modem+sim+credentials - receipts_url (required): string; format uri Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/passport/share Summary: Create (or return) the public share link for these port details Operation ID: postPortsByIdPassportShare Auth: Session, or an API key with scope ports:write. Idempotency-Key: required The public document never includes credentials. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - public_token (required): string; length at least 1 - url (required): string; format uri Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/ping Summary: Test the port live: online or not, its exit IP and the response time Operation ID: postPortsByIdPing Auth: Session, or an API key with scope ports:read. Sends one request through the port's HTTP proxy with its stored login and answers what it saw. Nothing is stored. Running ports with connection details only (409 otherwise). One test per port per 10 s. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - online (required): boolean - ip (required): string | null - latency_ms (required): integer | null; at least 0 - error (required): string | null; one of: timeout, refused, auth, bad_response - checked_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/ports/{id}/receipts Summary: Rotation log of a port: signed rotation records, newest first Operation ID: getPortsByIdReceipts Auth: Session, or an API key with scope ports:read. Only rotation records signed since your subscription started are visible. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 - id (path, required): string; length at least 1 Response 200 OK (application/json): object - data (required): array of object - id (required): string - port_id (required): string - site_code (required): string; length at least 1 - requested_by (required): string; one of: manual, api, token, schedule, health, migration - old_ip4 (required): string | null - new_ip4 (required): string | null - old_ip6_prefix (required): string | null - new_ip6_prefix (required): string | null - v4_is_nat64 (required): boolean - rotated (required): boolean - attempts (required): integer; at least 0 - elapsed_ms (required): integer; at least 0 - reason (required): string; one of: ok, carrier_sticky, attach_timeout, driver_error, cooldown - driver (required): string; length at least 1 - carrier (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - geo (required): object; nested fields not listed … - reputation (required): object | null; nested fields not listed … - sticky_window_s (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - sim_contract_class (required): string; one of: prepaid, business, m2m - signed_at (required): string; format date-time - key_id (required): string; pattern ^[a-z0-9-]+-\d{4}$ - attestation (optional): string; one of: signed, observed - sig (required): string; pattern ^[A-Za-z0-9+/]+={0,2}$; length at least 86 - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/renew Summary: Renew the subscription for one more term Operation ID: postPortsByIdRenew Auth: Session, or an API key with scope ports:write. Idempotency-Key: required A Partner network port is renewed on the network first and paid from the wallet; the new end of the term is the one the network confirmed. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/ports/{id}/renew-quote Summary: Cost of one more term from the wallet, and whether the port can renew now Operation ID: getPortsByIdRenewQuote Auth: Session, or an API key with scope ports:read. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - port_id (required): string - term (required): string; one of: monthly, weekly, daily - days (required): integer; 1 to 90 - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - ends_at (required): string; format date-time - wallet_balance_cents (required): integer - can_renew (required): boolean - reason (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/replace Summary: Replace with a fresh port on the same carrier Operation ID: postPortsByIdReplace Auth: Session, or an API key with scope ports:write. Idempotency-Key: required The old port is retired and the subscription moves to the new one. A Partner network port keeps its id: the device is swapped and host, ports and credentials change. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object - id (required): string - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - operator (required): string; one of: owned, partner - listeners (required): object - host (required): string; length at least 1 - http_port (required): integer; 1 to 65535 - socks_port (required): integer; 1 to 65535 - credentials (required): object | null - username (required): string; length at least 1 - password (required): string; length at least 1 - http (optional): object; nested fields not listed … - socks5 (optional): object; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object - bytes (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null - http_host (required): string; one of: ipv4, ipv6, hostname, unknown - socks5_host (required): string; one of: ipv4, ipv6, hostname, unknown - egress (required): string; one of: ipv4, ipv6, unknown - native_ipv6 (required): boolean | null - openvpn (required): boolean | null - os_profile (required): boolean | null - reported_at (required): string; format date-time - capabilities (optional): object | null - replace (required): boolean - cancel (required): boolean - allowlist (required): boolean - auto_swap (required): boolean - rotation_interval (required): boolean - password_change (required): boolean - renewal (optional): object | null - auto_renew (required): boolean - ends_at (required): string; format date-time - price_cents (required): integer; at least 0 - can_renew (required): boolean - rotation_url (optional): string; format uri Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### POST /v1/ports/{id}/rescore Summary: Re-run the reputation score for the current IP Operation ID: postPortsByIdRescore Auth: Session, or an API key with scope ports:write. Idempotency-Key: required One included rescore per port per UTC day. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - reputation (required): object - flagged (required): boolean - hosting (required): boolean - providers (required): array of string - scored_at (required): string; format date-time Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/ports/{id}/rotate Summary: Rotate the egress IP Operation ID: postPortsByIdRotate Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Rotates the port and waits for the Ed25519-signed rotation record (default `wait=true`). Own-farm ports wait up to 180 s; partner-network ports up to 30 s, because their IP change takes about a minute. On timeout, or with `wait=false`, the answer is 202 with `rotation_id`: poll `GET /v1/ports/{id}/rotation/{rotation_id}` for the record. Rate limit: 1 per 60 s per port, taken before the rotation starts (429 `port_cooldown` with `retry_after`). Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - wait (optional): boolean; default true Response 200 OK (application/json): object - id (required): string - port_id (required): string - site_code (required): string; length at least 1 - requested_by (required): string; one of: manual, api, token, schedule, health, migration - old_ip4 (required): string | null - new_ip4 (required): string | null - old_ip6_prefix (required): string | null - new_ip6_prefix (required): string | null - v4_is_nat64 (required): boolean - rotated (required): boolean - attempts (required): integer; at least 0 - elapsed_ms (required): integer; at least 0 - reason (required): string; one of: ok, carrier_sticky, attach_timeout, driver_error, cooldown - driver (required): string; length at least 1 - carrier (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - geo (required): object - country (required): string | null - region (required): string | null - sources (required): integer; at least 0 - reputation (required): object | null - flagged (required): boolean - hosting (required): boolean - scored_at (required): string | null; format date-time - sticky_window_s (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - sim_contract_class (required): string; one of: prepaid, business, m2m - signed_at (required): string; format date-time - key_id (required): string; pattern ^[a-z0-9-]+-\d{4}$ - attestation (optional): string; one of: signed, observed - sig (required): string; pattern ^[A-Za-z0-9+/]+={0,2}$; length at least 86 Response 202 Accepted (application/json): object - rotation_id (required): string - status (required): string; one of: pending Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PUT /v1/ports/{id}/rotation Summary: Set the rotation schedule (0 = sticky, else 60..86400 s) Operation ID: putPortsByIdRotation Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - interval_s (required): integer Response 200 OK (application/json): object - id (required): string - state (required): string; one of: provisioning, available, reserved, sold, leased, migrating, quarantined, retired - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - carrier (required): object - id (required): string - name (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - ip_stack (required): string; one of: v4, v6_464xlat, dual, unknown - operator (required): string; one of: owned, partner - listeners (required): object - host (required): string; length at least 1 - http_port (required): integer; 1 to 65535 - socks_port (required): integer; 1 to 65535 - credentials (required): object | null - username (required): string; length at least 1 - password (required): string; length at least 1 - http (optional): object; nested fields not listed … - socks5 (optional): object; nested fields not listed … - allowlist (required): array of string; items at most 10 - egress_v4 (required): string | null - egress_v6_prefix (required): string | null - v4_is_nat64 (required): boolean - ip_since (required): string | null; format date-time - rotation_interval_s (required): integer; at least 0 - sticky_until (required): string | null; format date-time - cooldown_until (required): string | null; format date-time - last_rotation_at (required): string | null; format date-time - telemetry_since (required): string | null; format date-time - usage_today (required): object - bytes (required): integer; at least 0 - cap_bytes (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - subscription (required): object | null - id (required): string - org_id (required): string - port_id (required): string - sku (required): string; length at least 1 - term (required): string; one of: monthly, weekly, daily - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - starts_at (required): string; format date-time - ends_at (required): string; format date-time - auto_renew (required): boolean - state (required): string; one of: active, grace, suspended, ended - provider_ref (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time - evidence (required): string; one of: signed, observed - attestation (required): string; one of: signed, observed - network (optional): string; one of: own, partner - modem_features (optional): object | null - http_host (required): string; one of: ipv4, ipv6, hostname, unknown - socks5_host (required): string; one of: ipv4, ipv6, hostname, unknown - egress (required): string; one of: ipv4, ipv6, unknown - native_ipv6 (required): boolean | null - openvpn (required): boolean | null - os_profile (required): boolean | null - reported_at (required): string; format date-time - capabilities (optional): object | null - replace (required): boolean - cancel (required): boolean - allowlist (required): boolean - auto_swap (required): boolean - rotation_interval (required): boolean - password_change (required): boolean - renewal (optional): object | null - auto_renew (required): boolean - ends_at (required): string; format date-time - price_cents (required): integer; at least 0 - can_renew (required): boolean - rotation_url (optional): string; format uri Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/ports/{id}/rotation/{rid} Summary: Status of a pending rotation Operation ID: getPortsByIdRotationByRid Auth: Session, or an API key with scope ports:read. The signed rotation record once the rotation has finished (200), or 202 `pending` while it still runs. Records from before your ownership of the port are not found. Parameters: - id (path, required): string; length at least 1 - rid (path, required): string; length 1 to 64 Response 200 OK (application/json): object - id (required): string - port_id (required): string - site_code (required): string; length at least 1 - requested_by (required): string; one of: manual, api, token, schedule, health, migration - old_ip4 (required): string | null - new_ip4 (required): string | null - old_ip6_prefix (required): string | null - new_ip6_prefix (required): string | null - v4_is_nat64 (required): boolean - rotated (required): boolean - attempts (required): integer; at least 0 - elapsed_ms (required): integer; at least 0 - reason (required): string; one of: ok, carrier_sticky, attach_timeout, driver_error, cooldown - driver (required): string; length at least 1 - carrier (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - geo (required): object - country (required): string | null - region (required): string | null - sources (required): integer; at least 0 - reputation (required): object | null - flagged (required): boolean - hosting (required): boolean - scored_at (required): string | null; format date-time - sticky_window_s (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - sim_contract_class (required): string; one of: prepaid, business, m2m - signed_at (required): string; format date-time - key_id (required): string; pattern ^[a-z0-9-]+-\d{4}$ - attestation (optional): string; one of: signed, observed - sig (required): string; pattern ^[A-Za-z0-9+/]+={0,2}$; length at least 86 Response 202 Accepted (application/json): object - rotation_id (required): string - status (required): string; one of: pending Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/quotes Summary: Quote a quantity of ports (volume ladder applied) Operation ID: postQuotes Auth: No credential. Request body (application/json, required): object - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - term (required): string; one of: monthly, weekly, daily - quantity (required): integer; 1 to 1000 Response 200 OK (application/json): object - unit_cents (required): integer; at least 0 - discount_pct (required): number; 0 to 100 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/r/{token} Summary: Rotate via the per-port token URL Operation ID: getRByToken Auth: No credential. Waits for the signed rotation record (up to 180 s). 200 with the record only when the IP changed; otherwise 502 `{ reason }`. Parameters: - token (path, required): string; length 8 to 128 Response 200 OK (application/json): object - id (required): string - port_id (required): string - site_code (required): string; length at least 1 - requested_by (required): string; one of: manual, api, token, schedule, health, migration - old_ip4 (required): string | null - new_ip4 (required): string | null - old_ip6_prefix (required): string | null - new_ip6_prefix (required): string | null - v4_is_nat64 (required): boolean - rotated (required): boolean - attempts (required): integer; at least 0 - elapsed_ms (required): integer; at least 0 - reason (required): string; one of: ok, carrier_sticky, attach_timeout, driver_error, cooldown - driver (required): string; length at least 1 - carrier (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - geo (required): object - country (required): string | null - region (required): string | null - sources (required): integer; at least 0 - reputation (required): object | null - flagged (required): boolean - hosting (required): boolean - scored_at (required): string | null; format date-time - sticky_window_s (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - sim_contract_class (required): string; one of: prepaid, business, m2m - signed_at (required): string; format date-time - key_id (required): string; pattern ^[a-z0-9-]+-\d{4}$ - attestation (optional): string; one of: signed, observed - sig (required): string; pattern ^[A-Za-z0-9+/]+={0,2}$; length at least 86 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/receipts/{id} Summary: One rotation record by id (`rot_...`) Operation ID: getReceiptsById Auth: Session, or an API key with scope ports:read. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - id (required): string - port_id (required): string - site_code (required): string; length at least 1 - requested_by (required): string; one of: manual, api, token, schedule, health, migration - old_ip4 (required): string | null - new_ip4 (required): string | null - old_ip6_prefix (required): string | null - new_ip6_prefix (required): string | null - v4_is_nat64 (required): boolean - rotated (required): boolean - attempts (required): integer; at least 0 - elapsed_ms (required): integer; at least 0 - reason (required): string; one of: ok, carrier_sticky, attach_timeout, driver_error, cooldown - driver (required): string; length at least 1 - carrier (required): string; length at least 1 - mcc_mnc (required): string; pattern ^\d{5,6}$ - asn (required): string | null - geo (required): object - country (required): string | null - region (required): string | null - sources (required): integer; at least 0 - reputation (required): object | null - flagged (required): boolean - hosting (required): boolean - scored_at (required): string | null; format date-time - sticky_window_s (required): integer; at least 0 - ip_shared_with_own_ports (required): integer; at least 0 - sim_contract_class (required): string; one of: prepaid, business, m2m - signed_at (required): string; format date-time - key_id (required): string; pattern ^[a-z0-9-]+-\d{4}$ - attestation (optional): string; one of: signed, observed - sig (required): string; pattern ^[A-Za-z0-9+/]+={0,2}$; length at least 86 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/usage Summary: Usage time series for one port Operation ID: getUsage Auth: Session, or an API key with scope ports:read. Defaults: `granularity=hour`, `to=now`, `from` = 6 h (minute), 24 h (hour) or 30 d (day) before `to`. Parameters: - port_id (query, required): string - from (query, optional): string; format date-time - to (query, optional): string; format date-time - granularity (query, optional): string; one of: minute, hour, day; default hour Response 200 OK (application/json): object - data (required): array of object - ts (required): string; format date-time - bytes_in (required): integer; at least 0 - bytes_out (required): integer; at least 0 - sessions_peak (required): integer; at least 0 - conns_new (required): integer; at least 0 - rotations (required): integer; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ## SMS numbers and eSIMs Prices, wallet purchases, owned numbers and messages, eSIM installations and supported actions. ### GET /v1/digital/assets Summary: List your SMS numbers and eSIMs Operation ID: getDigitalAssets Auth: Session, or an API key with scope digital:read. Parameters: - kind (query, optional): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - family (query, optional): string; one of: esim, sms - cursor (query, optional): string - limit (query, optional): integer; 1 to 100; default 30 Response 200 OK (application/json): object - data (required): array of object - id (required): string - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - title (required): string - status (required): string; one of: processing, active, code_received, completed, expired, cancelled, refunded, unknown - order_id (required): string - order_item_id (required): string - product_sku (required): string - unit (required): integer; above 0 - details (required): object; nested fields not listed … - phone_number (required): string | null - iccid (required): string | null - expires_at (required): string | null; format date-time - created_at (required): string; format date-time - updated_at (required): string; format date-time - last_synced_at (required): string | null; format date-time - sync_state (required): string; one of: current, stale, unknown - installation_available (required): boolean - usage (required): object | null; nested fields not listed … - actions (required): array of string - auto_renew (required): boolean - attention (required): string | null - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/assets/{id} Summary: Get one of your SMS numbers or eSIMs Operation ID: getDigitalAssetsById Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Response 200 OK (application/json): object - asset (required): object - id (required): string - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - title (required): string - status (required): string; one of: processing, active, code_received, completed, expired, cancelled, refunded, unknown - order_id (required): string - order_item_id (required): string - product_sku (required): string - unit (required): integer; above 0 - details (required): object; nested fields not listed … - phone_number (required): string | null - iccid (required): string | null - expires_at (required): string | null; format date-time - created_at (required): string; format date-time - updated_at (required): string; format date-time - last_synced_at (required): string | null; format date-time - sync_state (required): string; one of: current, stale, unknown - installation_available (required): boolean - usage (required): object | null; nested fields not listed … - actions (required): array of string - auto_renew (required): boolean - attention (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### POST /v1/digital/assets/{id}/execute Summary: Run a quoted action, paid from the wallet Operation ID: postDigitalAssetsByIdExecute Auth: Session, or an API key with scope digital:write. Idempotency-Key: required Requires digital:write and Idempotency-Key (1–255 printable ASCII characters). Paid actions spend wallet funds. Send quote_id, exact expected_total_cents, confirm:true and accept_terms:true. Same key/body replays the durable operation; changed body conflicts. Quotes expire after five minutes; pending/unknown outcomes require reconciliation, never a new purchase key. Parameters: - id (path, required): string - Idempotency-Key (header, required): string; pattern ^[\x20-\x7e]+$; length 1 to 255. Required from every caller: 1 to 255 printable ASCII characters. A repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - quote_id (required): string - expected_total_cents (required): integer; at least 0 - confirm (required): boolean; one of: true - accept_terms (required): boolean; one of: true Response 200 OK (application/json): object - operation (required): object - id (required): string - asset_id (required): string | null - action (required): string - state (required): string; one of: pending, submitted, succeeded, failed, unknown - charged_cents (required): integer; at least 0 - currency (required): string; one of: EUR - attention (required): string | null - created_at (required): string; format date-time - order_id (optional): string | null - receipt_url (optional): string | null - asset (required): object | null - id (required): string - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - title (required): string - status (required): string; one of: processing, active, code_received, completed, expired, cancelled, refunded, unknown - order_id (required): string - order_item_id (required): string - product_sku (required): string - unit (required): integer; above 0 - details (required): object; nested fields not listed … - phone_number (required): string | null - iccid (required): string | null - expires_at (required): string | null; format date-time - created_at (required): string; format date-time - updated_at (required): string; format date-time - last_synced_at (required): string | null; format date-time - sync_state (required): string; one of: current, stale, unknown - installation_available (required): boolean - usage (required): object | null; nested fields not listed … - actions (required): array of string - auto_renew (required): boolean - attention (required): string | null Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/assets/{id}/installation Summary: Installation details for one of your eSIMs Operation ID: getDigitalAssetsByIdInstallation Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Response 200 OK (application/json): object - installation (required): object - activation_code (required): string | null - smdp_address (required): string | null - lpa_uri (required): string | null - qr_url (required): string | null - iccid (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/assets/{id}/messages Summary: Messages received on one of your SMS numbers Operation ID: getDigitalAssetsByIdMessages Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - cursor (query, optional): string - id (path, required): string Response 200 OK (application/json): object - data (required): array of object - id (required): string - text (required): string | null - code (required): string | null - content_withheld (required): boolean - received_at (required): string; format date-time - next_cursor (required): string | null - last_synced_at (required): string | null; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/assets/{id}/qr.png Summary: eSIM installation QR code (PNG) Operation ID: getDigitalAssetsByIdQrPng Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Response 200 The eSIM installation QR code (image/png): string Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/digital/assets/{id}/quotes Summary: Quote a paid action (such as a top-up) before you run it Operation ID: postDigitalAssetsByIdQuotes Auth: Session, or an API key with scope digital:write. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Request body (application/json, required): object - action (required): string; one of: esim_topup, sms_reuse, sms_paid_reuse, sms_complete, sms_cancel, sms_rerent - product_id (optional): string; length at most 128 Response 200 OK (application/json): object - quote (required): object - id (required): string - asset_id (required): string - action (required): string; one of: esim_topup, sms_reuse, sms_paid_reuse, sms_complete, sms_cancel, sms_rerent - title (required): string - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR - expires_at (required): string; format date-time - refund_cents (optional): integer | null; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### POST /v1/digital/assets/{id}/refresh Summary: Refresh the saved status of one of your SMS numbers or eSIMs Operation ID: postDigitalAssetsByIdRefresh Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Response 200 OK (application/json): object - asset (required): object - id (required): string - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - title (required): string - status (required): string; one of: processing, active, code_received, completed, expired, cancelled, refunded, unknown - order_id (required): string - order_item_id (required): string - product_sku (required): string - unit (required): integer; above 0 - details (required): object; nested fields not listed … - phone_number (required): string | null - iccid (required): string | null - expires_at (required): string | null; format date-time - created_at (required): string; format date-time - updated_at (required): string; format date-time - last_synced_at (required): string | null; format date-time - sync_state (required): string; one of: current, stale, unknown - installation_available (required): boolean - usage (required): object | null; nested fields not listed … - actions (required): array of string - auto_renew (required): boolean - attention (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/assets/{id}/topups Summary: Top-up options for one of your eSIMs or numbers Operation ID: getDigitalAssetsByIdTopups Auth: Session, or an API key with scope digital:read. Requires digital:read for GET and refresh; digital:write for quotes and execute. Owned resources only. Asset, installation and message GETs read saved data; QR, top-up options, quotes, execute and refresh can contact the product service. Parameters: - id (path, required): string Response 200 OK (application/json): object - data (required): array of object - product_id (required): string - title (required): string - details (required): object; nested fields not listed … - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR - available (required): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/catalog Summary: Browse SMS and eSIM plans with filters and bounded pages Operation ID: getDigitalCatalog Auth: No credential. Parameters: - family (query, required): string; one of: esim, sms - sort (query, optional): string; one of: price_asc, price_desc, title - q (query, optional): string; length at most 160 - country (query, optional): string; pattern ^[A-Z]{2}$ - digital_kind (query, optional): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - duration_days (query, optional): integer; 1 to 3650 - service_name (query, optional): string; length at most 160 - available_only (query, optional): string; one of: true, false - page (query, optional): integer; 1 to 1000; default 1 - limit (query, optional): integer; 1 to 60; default 24 Response 200 OK (application/json): object - products (required): array of object - availability_note (optional): string | null - id (required): string - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - kind (required): string; one of: port, bandwidth, topup, sms, esim - title (required): string; length at least 1 - country (required): string | null; pattern ^[A-Z]{2}$ - carrier_hint (required): string | null - term (required): string; one of: monthly, weekly, daily, gb, none - sell_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - evidence (required): string; one of: signed, observed - operator_label (required): string; length at least 1 - stock (required): integer | null; at least 0 - available (required): boolean - supply_health (required): string; one of: ok, degraded, down, unknown - tiers (optional): array of object | null; nested fields not listed … - gb_per_unit (optional): number | null; above 0 - once_per_customer (optional): boolean - digital_details (optional): object | null; nested fields not listed … - modem_features (optional): object | null; nested fields not listed … - total (required): integer; at least 0 - page (required): integer; above 0 - page_size (required): integer; above 0 - has_more (required): boolean - catalogue (optional): object - status (required): string; one of: current, stale, unknown - last_success_at (required): string | null; format date-time - facets (required): object - countries (required): array of string - durations (required): array of integer - services (required): array of string Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/digital/operations/{id} Summary: Status of a digital purchase or action Operation ID: getDigitalOperationsById Auth: Session, or an API key with scope digital:read. Parameters: - id (path, required): string Response 200 OK (application/json): object - operation (required): object - id (required): string - asset_id (required): string | null - action (required): string - state (required): string; one of: pending, submitted, succeeded, failed, unknown - charged_cents (required): integer; at least 0 - currency (required): string; one of: EUR - attention (required): string | null - created_at (required): string; format date-time - order_id (optional): string | null - receipt_url (optional): string | null - asset (required): object | null - id (required): string - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - title (required): string - status (required): string; one of: processing, active, code_received, completed, expired, cancelled, refunded, unknown - order_id (required): string - order_item_id (required): string - product_sku (required): string - unit (required): integer; above 0 - details (required): object; nested fields not listed … - phone_number (required): string | null - iccid (required): string | null - expires_at (required): string | null; format date-time - created_at (required): string; format date-time - updated_at (required): string; format date-time - last_synced_at (required): string | null; format date-time - sync_state (required): string; one of: current, stale, unknown - installation_available (required): boolean - usage (required): object | null; nested fields not listed … - actions (required): array of string - auto_renew (required): boolean - attention (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/prices/{sku} Summary: Current price for one digital SKU (digital:read) Operation ID: getDigitalPricesBySku Auth: Session, or an API key with scope digital:read. Account VAT rules and the same Portproof selling price as checkout. This is a snapshot, not a stock reservation or expiring guaranteed quote. Confirm total_cents with POST /v1/digital/purchases. Parameters: - sku (path, required): string; length 1 to 160 Response 200 OK (application/json): object - sku (required): string - quantity (required): number; one of: 1 - unit_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - vat_cents (required): integer; at least 0 - currency (required): string; one of: EUR Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### POST /v1/digital/purchases Summary: Buy one SMS or eSIM product from wallet (digital:write; spends funds) Operation ID: postDigitalPurchases Auth: Session, or an API key with scope digital:write. Idempotency-Key: required Isolated purchase: never reads or clears the browser cart. Required Idempotency-Key (1–200 characters), scoped to this customer and endpoint. Same key/SKU/expected total replays the current order, including concurrent requests; changed SKU or total is 409 idempotency_conflict. Server rechecks the final EUR total, availability and balance under purchase locks. No coupon field; existing checkout coupon handling is unchanged. Paid means accepted for fulfilment, not delivered. See https://portproof.org/docs/sms-esim-api. Parameters: - Idempotency-Key (header, required): string; length 1 to 200. Required from every caller: 1 to 200 characters. A repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - sku (required): string; length 1 to 160 - expected_total_cents (required): integer; at least 0 - accept_terms (required): boolean; one of: true Response 201 Created (application/json): object - method (required): string; one of: wallet - order (required): object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - items (required): array of object; nested fields not listed … - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - analytics_ref (optional): string | null; pattern ^[0-9a-f]{20}$ - created_at (required): string; format date-time - updated_at (required): string; format date-time - payment_id (required): string - replayed (required): boolean Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 501 Not available (application/problem+json) ### GET /v1/digital/reseller/catalog Summary: Full reseller catalogue (digital:read), independent of website featured listings Operation ID: getDigitalResellerCatalog Auth: Session, or an API key with scope digital:read. All imported eSIM and SMS categories, including unavailable and discontinued products. Pages use stable SKU tie-breaks; sort supports price_asc, price_desc and title. catalogue reports refresh freshness independently of product availability. Refresh runs every 15 minutes; failed refresh retains the last successful snapshot. Top-up options belong to an owned eSIM. See /docs/sms-esim-api on portproof.org. Parameters: - family (query, required): string; one of: esim, sms - sort (query, optional): string; one of: price_asc, price_desc, title - q (query, optional): string; length at most 160 - country (query, optional): string; pattern ^[A-Z]{2}$ - digital_kind (query, optional): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - duration_days (query, optional): integer; 1 to 3650 - service_name (query, optional): string; length at most 160 - available_only (query, optional): string; one of: true, false - page (query, optional): integer; 1 to 1000; default 1 - limit (query, optional): integer; 1 to 60; default 24 Response 200 OK (application/json): object - products (required): array of object - availability_note (optional): string | null - id (required): string - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - kind (required): string; one of: port, bandwidth, topup, sms, esim - title (required): string; length at least 1 - country (required): string | null; pattern ^[A-Z]{2}$ - carrier_hint (required): string | null - term (required): string; one of: monthly, weekly, daily, gb, none - sell_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - evidence (required): string; one of: signed, observed - operator_label (required): string; length at least 1 - stock (required): integer | null; at least 0 - available (required): boolean - supply_health (required): string; one of: ok, degraded, down, unknown - tiers (optional): array of object | null; nested fields not listed … - gb_per_unit (optional): number | null; above 0 - once_per_customer (optional): boolean - digital_details (optional): object | null; nested fields not listed … - modem_features (optional): object | null; nested fields not listed … - total (required): integer; at least 0 - page (required): integer; above 0 - page_size (required): integer; above 0 - has_more (required): boolean - catalogue (optional): object - status (required): string; one of: current, stale, unknown - last_success_at (required): string | null; format date-time - facets (required): object - countries (required): array of string - durations (required): array of integer - services (required): array of string Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/sms/refund-allowance Summary: SMS refund allowance: limit, used and remaining Operation ID: getSmsRefundAllowance Auth: Session, or an API key with any one of: billing:read, digital:read. Response 200 OK (application/json): object - locale (optional): string; one of: en, ru - limit (required): number; one of: 10 - used (required): integer; at least 0 - remaining (required): integer; at least 0 - pending (required): integer; at least 0 - ambiguous (required): integer; at least 0 - available (required): integer; at least 0 Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ## Shop, wallet and orders The price list and catalogue, cart, checkout, orders and refund requests, the wallet balance and ledger, and invoices. ### GET /v1/cart Summary: Current cart Operation ID: getCart Auth: No credential required; a signed-in session or an API key with any one of: billing:read, digital:read is used when sent. Carts of signed-out visitors are keyed by the `pp_cart` cookie (set on first write) and merged into the customer cart at login. Response 200 OK (application/json): object - cart (required): object - id (required): string - items (required): array of object; nested fields not listed … - subtotal_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - requires_kyb (required): boolean - expires_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/cart/items Summary: Add a product (by SKU) to the cart Operation ID: postCartItems Auth: No credential required; a signed-in session or an API key with any one of: ports:write, digital:write is used when sent. Carts of signed-out visitors are keyed by the `pp_cart` cookie (set on first write) and merged into the customer cart at login. A signed-in customer who already bought the trial (or holds an unpaid trial order) gets 409 `trial_already_used` for `traffic-trial`. A Partner network port is sold for its own term only (no `term_override`; each term is its own SKU), a few units per line, and only while it is on sale. Request body (application/json, required): object - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - quantity (optional): integer; 1 to 1000; default 1 - term_override (optional): string; one of: monthly, weekly, daily, gb, none - options (optional): object - region_id (optional): string; pattern ^[A-Za-z0-9_-]{1,64}$ - region_name (optional): string; length 1 to 80 - require_p0f (optional): boolean - expect (optional): object; nested fields not listed … Response 200 OK (application/json): object - cart (required): object - id (required): string - items (required): array of object; nested fields not listed … - subtotal_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - requires_kyb (required): boolean - expires_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PATCH /v1/cart/items/{id} Summary: Change quantity or term of a cart line Operation ID: patchCartItemsById Auth: No credential required; a signed-in session or an API key with any one of: ports:write, digital:write is used when sent. A Partner network port is sold for its own term only (no `term_override`; each term is its own SKU), a few units per line, and only while it is on sale. Parameters: - id (path, required): string; length at least 1 Request body (application/json, required): object - quantity (optional): integer; 1 to 1000 - term_override (optional): string | null; one of: monthly, weekly, daily, gb, none - options (optional): object | null - region_id (optional): string; pattern ^[A-Za-z0-9_-]{1,64}$ - region_name (optional): string; length 1 to 80 - require_p0f (optional): boolean - expect (optional): object; nested fields not listed … Response 200 OK (application/json): object - cart (required): object - id (required): string - items (required): array of object; nested fields not listed … - subtotal_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - requires_kyb (required): boolean - expires_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/cart/items/{id} Summary: Remove a cart line Operation ID: deleteCartItemsById Auth: No credential required; a signed-in session or an API key with any one of: ports:write, digital:write is used when sent. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - cart (required): object - id (required): string - items (required): array of object; nested fields not listed … - subtotal_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - requires_kyb (required): boolean - expires_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/catalog Summary: Sellable products with sell price, evidence level and live availability Operation ID: getCatalog Auth: No credential required; a signed-in session or any valid API key is used when sent. Never exposes cost, markup or source credentials. `evidence` is `signed` for Own network ports (rotation log signed on the device) and `observed` for Partner network ports (rotation log recorded by our monitoring). Partner network ports appear only while they are on sale; organisations with early access see them when they call with their session or API key. Parameters: - kind (query, optional): string; one of: port, bandwidth, topup, sms, esim - country (query, optional): string; pattern ^[A-Z]{2}$ Response 200 OK (application/json): object - products (required): array of object - availability_note (optional): string | null - id (required): string - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - kind (required): string; one of: port, bandwidth, topup, sms, esim - title (required): string; length at least 1 - country (required): string | null; pattern ^[A-Z]{2}$ - carrier_hint (required): string | null - term (required): string; one of: monthly, weekly, daily, gb, none - sell_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - evidence (required): string; one of: signed, observed - operator_label (required): string; length at least 1 - stock (required): integer | null; at least 0 - available (required): boolean - supply_health (required): string; one of: ok, degraded, down, unknown - tiers (optional): array of object | null; nested fields not listed … - gb_per_unit (optional): number | null; above 0 - once_per_customer (optional): boolean - digital_details (optional): object | null; nested fields not listed … - modem_features (optional): object | null; nested fields not listed … - port_options (optional): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/catalog/{sku} Summary: Product detail, evidence explanation and sample port details (Own network) Operation ID: getCatalogBySku Auth: No credential required; a signed-in session or any valid API key is used when sent. Partner network ports appear only while they are on sale; organisations with early access see them when they call with their session or API key. Parameters: - sku (path, required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ Response 200 OK (application/json): object - availability_note (optional): string | null - id (required): string - sku (required): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - kind (required): string; one of: port, bandwidth, topup, sms, esim - title (required): string; length at least 1 - country (required): string | null; pattern ^[A-Z]{2}$ - carrier_hint (required): string | null - term (required): string; one of: monthly, weekly, daily, gb, none - sell_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - evidence (required): string; one of: signed, observed - operator_label (required): string; length at least 1 - stock (required): integer | null; at least 0 - available (required): boolean - supply_health (required): string; one of: ok, degraded, down, unknown - tiers (optional): array of object | null - min_qty (required): integer; 1 to 100000 - unit_cents (required): integer; at least 0 - gb_per_unit (optional): number | null; above 0 - once_per_customer (optional): boolean - digital_details (optional): object | null - kind (required): string; one of: esim_plan, sms_activation, sms_rental, sms_dedicated - countries (optional): array of string; default [] - region (optional): string | null - data_limit_gb (optional): number | null; at least 0 - data_unlimited (optional): boolean - validity_days (optional): integer | null; above 0 - activation_policy (optional): string | null - network_type (optional): string | null - speed (optional): string | null - speed_note (optional): string | null - routing_location (optional): string | null - has_5g (optional): boolean - has_hotspot (optional): boolean - has_calls (optional): boolean - has_sms (optional): boolean - supports_topup (optional): boolean - call_minutes (optional): integer | null; at least 0 - phone_number_prefix (optional): string | null - calls_unlimited (optional): boolean - voice_note (optional): string | null - service_name (optional): string | null - duration_days (optional): integer | null; above 0 - billing_period (optional): string | null; one of: monthly - modem_features (optional): object | null - stock (required): integer | null; 0 to 9007199254740991 - ipv4 (required): integer | null; 0 to 9007199254740991 - ipv6 (required): integer | null; 0 to 9007199254740991 - native_ipv6 (required): boolean | null - openvpn (required): integer | null; 0 to 9007199254740991 - os_profile (required): integer | null; 0 to 9007199254740991 - reported_at (required): string; format date-time - description (required): string - evidence_explanation (required): string; length at least 1 - sample_passport (required): object | null - port_id (required): string - generated_at (required): string; format date-time - site_code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - operator (required): string; one of: owned, partner - evidence (optional): string; one of: signed, observed - network (optional): string; one of: own, partner - carrier (required): object; nested fields not listed … - sim_contract_class (required): string; one of: prepaid, business, m2m - egress (required): object; nested fields not listed … - geo (required): object; nested fields not listed … - reputation (required): object; nested fields not listed … - rotation (required): object; nested fields not listed … - uptime (required): object; nested fields not listed … - throughput (required): object; nested fields not listed … - usage (required): object; nested fields not listed … - sessions (required): object; nested fields not listed … - ip_shared_with_own_ports (required): integer; at least 0 - exclusivity (required): string; one of: modem+sim+credentials - receipts_url (required): string; format uri - terms (required): array of object - term (required): string; one of: monthly, weekly, daily, gb, none - sell_cents (required): integer; at least 0 - sku (optional): string; pattern ^[a-z0-9][a-z0-9-]{1,63}$ - includes (required): array of string Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/checkout Summary: Create an order from the cart and start the payment Operation ID: postCheckout Auth: Session, or an API key with any one of: ports:write, digital:write. Idempotency-Key: optional `accept_terms: true` is required: it records that the customer accepts the terms and the acceptable-use policy and asks for the service to start at once (optional `terms_version` names the version shown). While the shop is in waitlist mode (`GET /v1/launch` `mode: waitlist`) every cart (traffic or ports) is refused with 409 `launch_waitlist` and stays intact. Use a `payment_method` that `GET /v1/checkout/methods` returns for the caller; a payment method that is not set up is refused with 400 `payment_method_unavailable`. Response shape depends on `payment_method`: card and crypto methods return `redirect_url`, a hosted payment page that a person completes (the API cannot pay it); `wallet` debits the balance in a transaction and returns the order as `paid`; `bank_transfer` returns `bank` instructions. An explicit refusal by the payment service (502 `payment_checkout_refused`) cancels the order and restores the cart. A timeout, transport error, payment-service 5xx or malformed successful response (502 `payment_provider_error`) retains the pending order because an invoice may exist; retry with the same key opens that order without creating another invoice. An open unpaid trial order reserves trial eligibility until it is cancelled or expires. VAT: none while the seller is not registered for VAT (`GET /v1/launch` reports `seller.vat_registered`); otherwise 21 % for Lithuania and EU customers without a validated VAT id, reverse charge (0 %) for validated EU VAT ids outside LT, 0 % outside the EU. An `Idempotency-Key` header makes the call replay-safe; the same key with a different payment method or coupon is 409 `idempotency_conflict`. Parameters: - Idempotency-Key (header, optional): string; length 1 to 255. Optional: 1 to 255 characters; a longer key is ignored. When sent, a repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - expected_subtotal_cents (optional): integer; 0 to 9007199254740991 - coupon_code (optional): string; pattern ^[A-Z0-9-]{3,32}$ - org_billing (optional): object - legal_name (optional): string; length 2 to 200 - country (optional): string; pattern ^[A-Z]{2}$ - vat_id (optional): string | null; pattern ^[A-Z]{2}[A-Z0-9]{2,12}$ - billing_address (optional): object | null; nested fields not listed … - accept_terms (required): boolean; one of: true - terms_version (optional): string; length 1 to 40 Response 201 Created (application/json): object - order (required): object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - items (required): array of object; nested fields not listed … - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - analytics_ref (optional): string | null; pattern ^[0-9a-f]{20}$ - created_at (required): string; format date-time - updated_at (required): string; format date-time - payment_id (required): string - redirect_url (optional): string; format uri - method (required): string; one of: bank_transfer - bank (optional): object - iban (required): string; length at least 15 - bic (required): string; length 8 to 11 - beneficiary (required): string; length at least 1 - reference (required): string; length at least 1 - amount_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - amount (required): string; length at least 1 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 502 A partner service failed; the `code` says whether a retry is safe (application/problem+json) ### GET /v1/checkout/methods Summary: Payment methods usable now, plus `wallet` when the signed-in customer has funds Operation ID: getCheckoutMethods Auth: No credential required; a signed-in session or any valid API key is used when sent. Response 200 OK (application/json): object - methods (required): array of string Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/invoices Summary: Invoices Operation ID: getInvoices Auth: Session, or an API key with scope billing:read. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 Response 200 OK (application/json): object - data (required): array of object - id (required): string - org_id (required): string - provider (required): string; one of: manual, paddle, stripe, coingate, sepa - total_cents (required): integer - currency (required): string; one of: EUR, USD - state (required): string; one of: draft, open, paid, void - due_at (required): string | null; format date-time - lines (required): array of object; nested fields not listed … - created_at (required): string; format date-time - updated_at (required): string; format date-time - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/ledger Summary: Ledger entries (charges, SLA credits, refunds) Operation ID: getLedger Auth: Session, or an API key with scope billing:read. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 Response 200 OK (application/json): object - data (required): array of object - id (required): string; length at least 1 - org_id (required): string - type (required): string; one of: charge, credit_sla, credit_support, refund, payout, topup, order_debit, affiliate_credit, adjustment - amount_cents (required): integer - ref_type (required): string | null - ref_id (required): string | null - idempotency_key (required): string; length at least 1 - created_at (required): string; format date-time - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/orders Summary: Your orders Operation ID: getOrders Auth: Session, or an API key with scope billing:read. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 - status (query, optional): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - item_kind (query, optional): string; one of: port, bandwidth, topup, sms, esim Response 200 OK (application/json): object - data (required): array of object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - created_at (required): string; format date-time - updated_at (required): string; format date-time - item_count (required): integer; at least 0 - item_kinds (optional): array of string - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/orders/{id} Summary: One order with items, fulfilment status and credentials once delivered Operation ID: getOrdersById Auth: Session, or an API key with scope billing:read. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - order (required): object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - items (required): array of object; nested fields not listed … - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - analytics_ref (optional): string | null; pattern ^[0-9a-f]{20}$ - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/orders/{id}/cancel Summary: Cancel an unpaid order Operation ID: postOrdersByIdCancel Auth: Session, or an API key with scope ports:write. Paid orders require an email-confirmed refund request and owner review through /refund-requests. This endpoint cannot issue a customer-requested refund. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - order (required): object - id (required): string - number (required): string; pattern ^PP-\d{4}-\d{6,}$ - customer_id (required): string - org_id (required): string - status (required): string; one of: draft, awaiting_payment, awaiting_kyb, paid, provisioning, fulfilled, partially_fulfilled, failed_refunded, cancelled, refunded - subtotal_cents (required): integer; at least 0 - discount_cents (required): integer; at least 0 - vat_rate_bps (required): integer; 0 to 10000 - vat_cents (required): integer; at least 0 - total_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - payment_method (required): string; one of: stripe, coingate, nowpayments, wallet, bank_transfer, mock - coupon_code (required): string | null - items (required): array of object; nested fields not listed … - paid_at (required): string | null; format date-time - notes (required): string | null - invoice_url (required): string | null - payment_url (optional): string | null; format uri - analytics_ref (optional): string | null; pattern ^[0-9a-f]{20}$ - created_at (required): string; format date-time - updated_at (required): string; format date-time - refunded_cents (required): integer; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/orders/{id}/invoice Summary: HTML invoice (PDF later) Operation ID: getOrdersByIdInvoice Auth: Session, or an API key with scope billing:read. Parameters: - id (path, required): string; length at least 1 Response 200 The invoice as an HTML page (text/html): string Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/pricing Summary: Public price table Operation ID: getPricing Auth: No credential required; a signed-in session or any valid API key is used when sent. Partner network ports are listed only while they can be bought; organisations with early access see them when they call with their session or API key. Response 200 OK (application/json): object - currency_note (required): string - updated_at (required): string; format date-time - skus (required): array of object - sku (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - operator (required): string; one of: owned, partner - term (required): string; one of: monthly, weekly, daily, hourly - price_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - floor_cents (optional): integer; at least 0 - evidence (required): string; one of: signed, observed - buy_via (required): string; one of: ports, cart - terms (optional): object; nested fields not listed … - ladder (required): array of object - min_ports (required): integer; at least 1 - discount_pct (required): number; 0 to 100 - term_ratios (required): object - weekly (required): number; 0 to 1 - daily (required): number; 0 to 1 - trial (optional): object - price_cents (required): integer; at least 0 - hours (required): integer; at least 1 - traffic (optional): object | null - sku (required): string; length at least 1 - currency (required): string; one of: EUR - tiers (required): array of object; nested fields not listed … - packages_gb (required): array of integer - max_order_gb (required): integer; at least 1 - validity_days (required): integer; at least 0 - t0_monthly_gb_cap (required): number; at least 0 - trial (required): object | null; nested fields not listed … - available (required): boolean Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/refund-requests Summary: Your refund requests and owner decisions Operation ID: getRefundRequests Auth: Session, or an API key with scope billing:read. Parameters: - status (query, optional): string; one of: pending, approved, rejected - cursor (query, optional): string; length at most 512 - limit (query, optional): integer; 1 to 100; default 30 Response 200 OK (application/json): object - data (required): array of object - id (required): string - kind (required): string; one of: wallet, order, asset, port - order_id (required): string | null - order_number (required): string | null - asset_id (required): string | null - port_id (required): string | null - amount_cents (required): integer | null; at least 0 - currency (required): string; one of: EUR - reason (required): string - status (required): string; one of: pending, approved, rejected - review_note (required): string | null - created_at (required): string; format date-time - reviewed_at (required): string | null; format date-time - next_cursor (required): string | null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/refund-requests Summary: Request owner review of a refund; confirmed email required Operation ID: postRefundRequests Auth: Session, or an API key with any one of: ports:write, digital:write. Idempotency-Key: optional Creates a pending request only. No funds move and no service is cancelled. Purchases do not require email confirmation. An optional Idempotency-Key replays the same request; a duplicate pending target returns its existing request. Parameters: - Idempotency-Key (header, optional): string; pattern ^[\x20-\x7e]+$; length 1 to 255. Optional: 1 to 255 printable ASCII characters. When sent, a repeat with the same key and the same body returns the first result instead of acting twice. Request body (application/json, required): object - order_id (optional): string - asset_id (optional): string - port_id (optional): string - amount_cents (optional): integer; at most 2147483647; above 0 - reason (required): string; length 10 to 2000 Response 201 Created (application/json): object - request (required): object - id (required): string - kind (required): string; one of: wallet, order, asset, port - order_id (required): string | null - order_number (required): string | null - asset_id (required): string | null - port_id (required): string | null - amount_cents (required): integer | null; at least 0 - currency (required): string; one of: EUR - reason (required): string - status (required): string; one of: pending, approved, rejected - review_note (required): string | null - created_at (required): string; format date-time - reviewed_at (required): string | null; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/wallet Summary: Wallet balance and ledger entries Operation ID: getWallet Auth: Session, or an API key with scope billing:read. Cursor-paginated: `?limit=` (default 50, max 200) and `?cursor=` from the previous `next_cursor`. Parameters: - limit (query, optional): integer; 1 to 200; default 50 - cursor (query, optional): string; length at least 1 Response 200 OK (application/json): object - balance_cents (required): integer - currency (required): string; one of: EUR, USD - cap_cents (required): integer; at least 0 - entries (required): array of object - id (required): string; length at least 1 - type (required): string; one of: charge, credit_sla, credit_support, refund, payout, topup, order_debit, affiliate_credit, adjustment - amount_cents (required): integer - balance_after_cents (required): integer | null - ref_type (required): string | null - ref_id (required): string | null - description (required): string | null - item_kinds (optional): array of string - port_id (optional): string | null - created_at (required): string; format date-time - next_cursor (optional): string | null; default null Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/wallet/topup Summary: Top up the wallet (EUR 5 to 5,000 per top-up; balance cap EUR 20,000) Operation ID: postWalletTopup Auth: Session, or an API key with scope ports:write. Same response shapes as checkout with `kind: topup`. Use a card or crypto value that `GET /v1/checkout/methods` returns; a payment method that is not set up is refused with 400 `payment_method_unavailable`. Card and crypto return `redirect_url`, a hosted payment page that a person completes; the API cannot pay it. Read `GET /v1/wallet` until `balance_cents` goes up. Unused credit is refundable to the original method within 14 days. Request body (application/json, required): object - amount_cents (required): integer; 500 to 500000 - payment_method (required): string; one of: stripe, coingate, nowpayments, bank_transfer, mock Response 201 Created (application/json): object - topup (required): object - id (required): string - kind (required): string; one of: topup - amount_cents (required): integer; at least 500 - currency (required): string; one of: EUR, USD - provider (required): string; one of: stripe, coingate, nowpayments, bank_transfer, mock - provider_ref (required): string; length at least 1 - status (required): string; one of: pending, succeeded, failed, refunded, expired - created_at (required): string; format date-time - redirect_url (optional): string; format uri - method (required): string; one of: bank_transfer - bank (optional): object - iban (required): string; length at least 15 - bic (required): string; length 8 to 11 - beneficiary (required): string; length at least 1 - reference (required): string; length at least 1 - amount_cents (required): integer; at least 0 - currency (required): string; one of: EUR, USD - amount (required): string; length at least 1 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 402 Not enough funds in the wallet (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ## Account, API keys and webhooks Sign-up and sign-in, profile and sessions, projects and API keys, webhooks, company verification and referrals. ### GET /v1/affiliate Summary: Referral code, signups, earned and pending commission Operation ID: getAffiliate Auth: Session, or an API key with scope billing:read. Response 200 OK (application/json): object - code (required): string; pattern ^[A-Z0-9-]{4,32}$ - url (required): string; format uri - clicks (required): integer; at least 0 - signups (required): integer; at least 0 - earned_cents (required): integer; at least 0 - pending_cents (required): integer; at least 0 - terms (required): object - first_order_pct (required): number; 0 to 100 - recurring_pct (required): number; 0 to 100 - recurring_months (required): integer; at least 0 - cap_cents_per_referred (required): integer; at least 0 - payout_min_cents (required): integer; at least 0 - events (required): array of object - id (required): string - order_id (required): string - referred (required): string; length at least 1 - commission_cents (required): integer; at least 0 - kind (required): string; one of: first, recurring - credited_at (required): string | null; format date-time - created_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/forgot Summary: Send a password-reset mail (always answers ok) Operation ID: postAuthForgot Auth: No credential. Request body (application/json, required): object - email (required): string; format email; length at most 254 Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/login Summary: Sign in with email and password Operation ID: postAuthLogin Auth: No credential. Rate-limited per IP and per email. Sets the `pp_session` (httpOnly) and `pp_csrf` cookies; send the `pp_csrf` value as `X-CSRF-Token` on every later state change. Request body (application/json, required): object - email (required): string; format email; length at most 254 - password (required): string; length 1 to 200 Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 Refused for this caller (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/logout Summary: Revoke the current session and clear the cookies Operation ID: postAuthLogout Auth: No credential required; a signed-in session is used when sent. Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/magic Summary: Send a one-time sign-in link (always answers ok) Operation ID: postAuthMagic Auth: No credential. Request body (application/json, required): object - email (required): string; format email; length at most 254 - return_to (optional): string; one of: checkout, refunds. Continue to the named checkout or refund-request page after email verification; otherwise continue to the dashboard. Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/magic/consume Summary: Exchange a magic-link token for a session Operation ID: postAuthMagicConsume Auth: No credential. The first confirmation of a sign-up address (the verification link, or the first magic-link sign-in) signs out every other session, revokes every API key of the organisation and unlinks crypto wallets; create API keys again afterwards. Later confirmations and magic-link sign-ins do not revoke them. Request body (application/json, required): object - token (required): string; length 16 to 256 Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/resend-verification Summary: Send the verification mail again Operation ID: postAuthResendVerification Auth: Signed-in session only; API keys are refused. Requires a signed-in customer. Optional verification_return: "checkout" keeps the checkout destination in the email link; no body keeps the default dashboard destination. A definite mail-delivery failure returns 500 internal; an already-verified address succeeds without sending another message. Existing unused, unexpired verification links remain valid. Request body (application/json, required): any | object | null - verification_return (optional): string; one of: checkout, refunds. Continue to the named checkout or refund-request page after email verification; otherwise continue to the dashboard. Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 500 The server could not complete the call; the `code` and `detail` say what is known (application/problem+json) ### POST /v1/auth/reset Summary: Set a new password with a reset token and sign in Operation ID: postAuthReset Auth: No credential. Revokes the other sessions, the API keys and the linked wallets of the account, then signs in. Request body (application/json, required): object - token (required): string; length 16 to 256 - password (required): string; length 10 to 200 Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/signup Summary: Create an account and sign in (email confirmation optional) Operation ID: postAuthSignup Auth: No credential. At most 10 sign-ups per hour per client address. Sets the `pp_session` (httpOnly) and `pp_csrf` cookies; send the `pp_csrf` value as `X-CSRF-Token` on every later state change. 409 `email_taken` when the address already has an account: sign in with `POST /v1/auth/login`. Confirming the email is not needed to buy; the first confirmation revokes earlier sessions and API keys (`POST /v1/auth/verify`). Request body (application/json, required): object - email (required): string; format email; length at most 254 - password (required): string; length 10 to 200 - locale (optional): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - name (optional): string; length 1 to 120 - referral_code (optional): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (optional): boolean; default false - weekly_news_opt_in (optional): boolean - verification_return (optional): string; one of: checkout, refunds. Continue to the named checkout or refund-request page after email verification; otherwise continue to the dashboard. - attribution (optional): object. Optional. Where the visit that creates the account began: first page path, referring host, utm_source, utm_medium, utm_campaign. Invalid values are dropped; the account is created either way. - landing_path (optional): string; pattern ^\/[A-Za-z0-9\-._~!$&'()*+,;=:@%/]*$; length at most 200 - referrer_host (optional): string; pattern ^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$; length at most 253 - utm_source (optional): string; pattern ^[a-z0-9._+~-](?:[a-z0-9 ._+~-]{0,78}[a-z0-9._+~-])?$ - utm_medium (optional): string; pattern ^[a-z0-9._+~-](?:[a-z0-9 ._+~-]{0,78}[a-z0-9._+~-])?$ - utm_campaign (optional): string; pattern ^[a-z0-9._+~-](?:[a-z0-9 ._+~-]{0,78}[a-z0-9._+~-])?$ Response 201 Created (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time - verification_sent (required): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/verify Summary: Confirm an email address with the token from the verification mail; signs in Operation ID: postAuthVerify Auth: No credential. The first confirmation of a sign-up address (the verification link, or the first magic-link sign-in) signs out every other session, revokes every API key of the organisation and unlinks crypto wallets; create API keys again afterwards. Later confirmations and magic-link sign-ins do not revoke them. Request body (application/json, required): object - token (required): string; length 16 to 256 Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/wallet/challenge Summary: Request a single-use wallet ownership challenge Operation ID: postAuthWalletChallenge Auth: No credential required; a signed-in session is used when sent. Request body (application/json, required): object - correlation_id (optional): string; format uuid - namespace (required): string; one of: evm, solana, tron - address (required): string; length 20 to 100 - chain_id (required): string; length 1 to 40 - provider (required): string; one of: metamask, rabby, phantom, tronlink, trust, okx, coinbase, walletconnect, wallet_standard, injected, other - action (required): string; one of: signin, link, unlink, reauthenticate - terms_accepted (optional): boolean; default false - locale (optional): string; one of: en, ru; default en - referral_code (optional): string; pattern ^[A-Z0-9-]{4,32}$ Response 200 OK (application/json): object - challenge_id (required): string; format uuid - correlation_id (required): string; format uuid - message (required): string - expires_at (required): string; format date-time - sign_in_input (optional): object - domain (required): string - address (required): string - statement (required): string - uri (required): string - version (required): string; one of: 1 - chainId (required): string - nonce (required): string - issuedAt (required): string; format date-time - expirationTime (required): string; format date-time - requestId (required): string; format uuid Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 Refused for this caller (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/auth/wallet/verify Summary: Verify wallet proof and authenticate or update the current account Operation ID: postAuthWalletVerify Auth: No credential required; a signed-in session is used when sent. Request body (application/json, required): object - challenge_id (required): string; format uuid - signature (required): string; length 40 to 2048 Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time - created (required): boolean - action (required): string; one of: signin, link, unlink, reauthenticate - correlation_id (required): string; format uuid - signed_out (required): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 Refused for this caller (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/keys Summary: List the API keys of your organisation Operation ID: getKeys Auth: Session, or an API key with scope ports:read. Response 200 OK (application/json): object - data (required): array of object - id (required): string - project_id (required): string - prefix (required): string - scopes (required): array of string - expires_at (required): string | null; format date-time - last_used_at (required): string | null; format date-time - revoked_at (required): string | null; format date-time - created_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/keys/{id} Summary: Revoke an API key Operation ID: deleteKeysById Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Revocation is immediate and permanent. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 204 Revoked: no body Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/kyb Summary: Historical tier and pending request Operation ID: getKyb Auth: Session, or an API key with scope kyb:write. Deprecated: yes, it still answers. Legacy: Portproof purchases do not require identity verification. Kept so historical records stay readable. Response 200 OK (application/json): object - tier (required): string; one of: t0, t1, t2, t3 - pending (required): object | null - id (required): string; length at least 1 - org_id (required): string - requested_tier (required): string; one of: t0, t1, t2, t3 - data (required): object; nested fields not listed … - state (required): string; one of: pending, approved, rejected - reviewed_by (required): string | null - notes (required): string | null - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/me Summary: Current customer, org, KYB tier, wallet and referral summary Operation ID: getMe Auth: Session, or an API key with scope billing:read. Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time - org (required): object - id (required): string - legal_name (required): string - country (required): string; pattern ^[A-Z]{2}$ - vat_id (required): string | null - vat_id_valid_at (required): string | null; format date-time - billing_address (required): object | null; nested fields not listed … - country_of_supply (required): string | null; pattern ^[A-Z]{2}$ - kyb_tier (required): string; one of: t0, t1, t2, t3 - kyb_tier (required): string; one of: t0, t1, t2, t3 - wallet (required): object - balance_cents (required): integer - currency (required): string; one of: EUR, USD - referral (required): object - code (required): string; pattern ^[A-Z0-9-]{4,32}$ - url (required): string; format uri - earned_cents (required): integer; at least 0 Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PATCH /v1/me Summary: Update name, locale, marketing opt-in Operation ID: patchMe Auth: Signed-in session only; API keys are refused. Request body (application/json, required): object - name (optional): string | null; length 1 to 120 - locale (optional): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - marketing_opt_in (optional): boolean - weekly_news_opt_in (optional): boolean Response 200 OK (application/json): object - customer (required): object - id (required): string - org_id (required): string - email (required): string | null; format email; length at most 254 - email_verified (required): boolean - name (required): string | null - locale (required): string; pattern ^[a-z]{2}(-[A-Z]{2})?$ - referral_code (required): string; pattern ^[A-Z0-9-]{4,32}$ - marketing_opt_in (required): boolean - weekly_news_opt_in (optional): boolean - status (required): string; one of: active, suspended, closed - created_at (required): string; format date-time Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### PATCH /v1/me/org Summary: Update legal name, country, VAT id and billing address Operation ID: patchMeOrg Auth: Signed-in session only; API keys are refused. The VAT id is checked against VIES when that check is available and the service answers; `vat_id_valid_at` is set on success. Reverse charge applies only to validated EU VAT ids outside Lithuania. Request body (application/json, required): object - legal_name (optional): string; length 2 to 200 - country (optional): string; pattern ^[A-Z]{2}$ - vat_id (optional): string | null; pattern ^[A-Z]{2}[A-Z0-9]{2,12}$ - billing_address (optional): object | null - line1 (required): string; length 1 to 200 - line2 (optional): string | null; length at most 200 - city (required): string; length 1 to 120 - postal_code (required): string; length 1 to 20 - country (required): string; pattern ^[A-Z]{2}$ Response 200 OK (application/json): object - org (required): object - id (required): string - legal_name (required): string - country (required): string; pattern ^[A-Z]{2}$ - vat_id (required): string | null - vat_id_valid_at (required): string | null; format date-time - billing_address (required): object | null; nested fields not listed … - country_of_supply (required): string | null; pattern ^[A-Z]{2}$ - kyb_tier (required): string; one of: t0, t1, t2, t3 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/me/password Summary: Change the password Operation ID: postMePassword Auth: Signed-in session only; API keys are refused. Request body (application/json, required): object - current (optional): string; length at most 200; default - new (required): string; length 10 to 200 Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/me/recovery-email Summary: Verify an optional recovery email for a wallet-only account Operation ID: postMeRecoveryEmail Auth: Signed-in session only; API keys are refused. Request body (application/json, required): object - email (required): string; format email; length at most 254 Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) - 500 The server could not complete the call; the `code` and `detail` say what is known (application/problem+json) ### GET /v1/me/sessions Summary: Active sessions Operation ID: getMeSessions Auth: Signed-in session only; API keys are refused. Response 200 OK (application/json): object - data (required): array of object - id (required): string - ip (required): string | null - user_agent (required): string | null - current (required): boolean - created_at (required): string; format date-time - expires_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/me/sessions/{id} Summary: Revoke a session Operation ID: deleteMeSessionsById Auth: Signed-in session only; API keys are refused. Parameters: - id (path, required): string; length at least 1 Response 200 OK (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/me/wallet-identities Summary: List crypto identities linked to the current customer Operation ID: getMeWalletIdentities Auth: Signed-in session only; API keys are refused. Response 200 OK (application/json): object - data (required): array of object - id (required): string; format uuid - namespace (required): string; one of: evm, solana, tron - address (required): string - chain_id (required): string - provider (required): string; one of: metamask, rabby, phantom, tronlink, trust, okx, coinbase, walletconnect, wallet_standard, injected, other - created_at (required): string; format date-time - last_used_at (required): string | null; format date-time - can_unlink (required): boolean - reauthentication_required (required): boolean Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/me/wallet-identities/{id} Summary: Remove a crypto identity after recent account authentication Operation ID: deleteMeWalletIdentitiesById Auth: Signed-in session only; API keys are refused. Parameters: - id (path, required): string; format uuid Response 200 OK (application/json): object - ok (required): boolean; one of: true - signed_out (required): boolean - correlation_id (required): string; format uuid Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 API keys are refused here; sign in (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/projects Summary: List projects Operation ID: getProjects Auth: Session, or an API key with scope ports:read. Response 200 OK (application/json): object - data (required): array of object - id (required): string - org_id (required): string - name (required): string; length 1 to 100 - monthly_budget_cents (required): integer | null; at least 0 - spent_cents_mtd (required): integer; at least 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/projects Summary: Create a project Operation ID: postProjects Auth: Session, or an API key with scope ports:write. Idempotency-Key: required Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - name (required): string; length 1 to 100 - monthly_budget_cents (optional): integer; at least 0 Response 201 Created (application/json): object - id (required): string - org_id (required): string - name (required): string; length 1 to 100 - monthly_budget_cents (required): integer | null; at least 0 - spent_cents_mtd (required): integer; at least 0 - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/projects/{id}/keys Summary: Mint an API key for a project Operation ID: postProjectsByIdKeys Auth: Session, or an API key with scope ports:write. Idempotency-Key: required The secret is shown once. A key can only grant scopes it holds itself; a signed-in session (`pp_session` cookie plus `X-CSRF-Token`) holds every scope. An API-key caller must send an `Idempotency-Key` header (the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`); a signed-in session may leave it out. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - scopes (required): array of string; items at least 1 - expires_at (optional): string; format date-time Response 201 Created (application/json): object - id (required): string - prefix (required): string; length at least 1 - secret (required): string; length at least 1 - scopes (required): array of string Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/webhooks Summary: List active webhooks Operation ID: getWebhooks Auth: Session, or an API key with scope webhooks:write. Response 200 OK (application/json): object - data (required): array of object - id (required): string - org_id (required): string - url (required): string; format uri - events (required): array of string - active (required): boolean - created_at (required): string; format date-time - updated_at (required): string; format date-time Errors: - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/webhooks Summary: Register a webhook endpoint Operation ID: postWebhooks Auth: Session, or an API key with scope webhooks:write. Idempotency-Key: required The signing secret is shown once; deliveries carry `Portproof-Signature: t=,v1=`. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Request body (application/json, required): object - url (required): string; format uri - events (required): array of string; items at least 1 Response 201 Created (application/json): object - id (required): string - url (required): string; format uri - events (required): array of string - secret (required): string; length at least 1 Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### DELETE /v1/webhooks/{id} Summary: Delete a webhook Operation ID: deleteWebhooksById Auth: Session, or an API key with scope webhooks:write. Idempotency-Key: required Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 204 Deleted: no body Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/webhooks/{id}/test Summary: Queue a test delivery Operation ID: postWebhooksByIdTest Auth: Session, or an API key with scope webhooks:write. Idempotency-Key: required Sends a `webhook.test` event on the worker's next tick. Requires an `Idempotency-Key` header: the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`. Parameters: - id (path, required): string; length at least 1 - Idempotency-Key (header, required): string; length 1 to 255. Required for API-key calls; a signed-in session may leave it out (its CSRF token protects the call). 1 to 255 characters. A repeat with the same key and the same body within 24 h returns the first result; the same key with a different body is 409 `idempotency_conflict`. Response 200 OK (application/json): object - delivery_id (required): string; length at least 1 Errors: - 400 The request is invalid, or the Idempotency-Key header is missing (`idempotency_key_required`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`). A session call without the `X-CSRF-Token` header is `csrf_failed` (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 409 Conflicts with the current state, or the Idempotency-Key was used with a different body or its first call is still running (`idempotency_conflict`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ## Status and platform Health, status and SLA reports, launch mode and the waitlist, echo-ip and well-known documents. ### GET /.well-known/portproof-keys.json Summary: Ed25519 keys that sign rotation records Operation ID: getWellKnownPortproofKeysJson Auth: No credential. Response 200 OK (application/json): object - keys (required): array of object - key_id (required): string; length at least 1 - site_code (required): string; length at least 1 - alg (required): string; one of: Ed25519 - public_key_b64 (required): string; length at least 1 - valid_from (required): string; format date-time - valid_to (required): string; format date-time Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /.well-known/security.txt Summary: Security contact (RFC 9116) Operation ID: getWellKnownSecurityTxt Auth: No credential. Response 200 Security contact (RFC 9116) (text/plain): string Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /health Summary: Health check Operation ID: getHealth Auth: No credential. Response 200 OK (application/json): object - status (required): string; one of: ok - driver (required): string; one of: pglite, pg - time (required): string; format date-time - uptime_s (required): integer; at least 0 - version (required): string - release (required): string | null; pattern ^\d{14}-[0-9a-f]{10}$ Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/echo-ip Summary: Echo the caller IP Operation ID: getEchoIp Auth: No credential. The address the request came from, as the API sees it. `country` is present only when the network edge in front of the API reports it; the API does no geolocation of its own, and a client-sent `CF-IPCountry` header is ignored. Response 200 OK (application/json): object - ip (required): string - family (required): string; one of: v4, v6 - ts (required): string; format date-time - country (optional): string; length 2 to 2 Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/launch Summary: Launch mode, configured payment methods and sellable supply (ports, traffic) Operation ID: getLaunch Auth: No credential. `mode` is `waitlist` while the shop takes waitlist sign-ups instead of orders (buy buttons become "Notify me"). `payment_methods` lists only the methods configured now; `wallet` is per customer and appears in `GET /v1/checkout/methods` instead. `seller` is the seller identity shown on invoices: `type` null means no registered business is claimed, `vat_registered` false means VAT is 0 on every order. `traffic_validity_days` 0 means GB never expire. `ports_on_sale` true means Partner network ports can be bought by everyone. Response 200 OK (application/json): object - mode (required): string; one of: open, waitlist - payment_methods (required): array of string - supply (required): object - sellable_products (required): integer; at least 0 - sellable_traffic (optional): boolean - traffic_from_cents (optional): integer | null; at least 0 - seller (optional): object - brand_name (required): string; length at least 1 - legal_name (required): string | null - type (required): string | null; one of: company, sole_trader - reg_code (required): string | null - address (required): string | null - country (required): string; length 2 to 2 - vat_id (required): string | null - vat_registered (required): boolean - support_email (required): string | null - abuse_email (required): string | null - traffic_validity_days (optional): integer; at least 0 - ports_on_sale (optional): boolean Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/sla/{month} Summary: SLA periods for a month (YYYY-MM), computed on demand Operation ID: getSlaByMonth Auth: Session, or an API key with scope billing:read. Credits show `posted_at: null` until they are posted to your account. Parameters: - month (path, required): string; pattern ^\d{4}-(0[1-9]|1[0-2])$ Response 200 OK (application/json): object - month (required): string; pattern ^\d{4}-(0[1-9]|1[0-2])$ - ports (required): array of object - id (required): string; length at least 1 - org_id (required): string - port_id (required): string - month (required): string; pattern ^\d{4}-(0[1-9]|1[0-2])$ - uptime_pct (required): number; 0 to 100 - rotation_success_pct (required): number | null; 0 to 100 - credit_pct (required): number; 0 to 100 - credit_cents (required): integer; at least 0 - posted_at (required): string | null; format date-time - evidence (required): object - total_credit_cents (required): integer; at least 0 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 401 No credential, or an invalid or expired one (`unauthorized`) (application/problem+json) - 403 The API key holds none of the scopes in `x-scopes` (`insufficient_scope`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/status Summary: Platform, site and carrier status Operation ID: getStatus Auth: No credential. Response 200 OK (application/json): object - updated_at (required): string; format date-time - platform (required): string; one of: ok, degraded, outage - sites (required): array of object - code (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - operator (required): string; one of: owned, partner - status (required): string; one of: provisioning, live, degraded, offline - ports_live (required): integer; at least 0 - uptime_30d_pct (required): number | null; 0 to 100 - carriers (required): array of object - id (required): string - name (required): string; length at least 1 - country (required): string; pattern ^[A-Z]{2}$ - uptime_30d_pct (required): number | null; 0 to 100 - rotation_first_attempt_pct (required): number | null; 0 to 100 - rotation_p50_ms (required): number | null; at least 0 - rotation_floor_pct (required): number | null; 0 to 100 - incidents (required): array of object - id (required): string - scope (required): string; one of: port, site, carrier, platform - scope_id (required): string | null - title (required): string; length at least 1 - cause (required): string | null - started_at (required): string; format date-time - resolved_at (required): string | null; format date-time - sla_excluded (required): boolean - public (required): boolean - support (required): object - median_first_response_min_30d (required): number | null; at least 0 - traffic (required): object - health (required): string | null; one of: ok, degraded, down, unknown - last_sync_at (required): string | null; format date-time - countries_generated_at (required): string | null; format date-time Errors: - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/status/carriers/{id}/history Summary: Daily uptime and first-attempt rotation success for a carrier Operation ID: getStatusCarriersByIdHistory Auth: No credential. Parameters: - days (query, optional): integer; 1 to 365; default 90 - id (path, required): string; length at least 1 Response 200 OK (application/json): object - carrier_id (required): string - days (required): integer; at least 1 - data (required): array of object - date (required): string; pattern ^\d{4}-\d{2}-\d{2}$ - uptime_pct (required): number | null; 0 to 100 - rotation_first_attempt_pct (required): number | null; 0 to 100 Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 404 Not found, or not yours (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### POST /v1/waitlist Summary: Join the waitlist (double opt-in) Operation ID: postWaitlist Auth: No credential. Sends a confirmation mail with a link to `/waitlist/confirm?token=` on the web app. Always answers `201 { ok: true }`, also for an address that is already on the list. Limited to 5 calls per 15 minutes per client address. Request body (application/json, required): object - email (required): string; format email; length at most 254 - country (optional): string; pattern ^[A-Z]{2}$ - sku (optional): string; pattern ^[a-z0-9][a-z0-9._-]*$; length 1 to 64 - note (optional): string; length at most 500 Response 201 Created (application/json): object - ok (required): boolean; one of: true Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json) ### GET /v1/waitlist/confirm Summary: Confirm a waitlist sign-up with the token from the mail Operation ID: getWaitlistConfirm Auth: No credential. Parameters: - token (query, required): string; length 16 to 128 Response 200 OK (application/json): object - ok (required): boolean; one of: true - email (required): string - already_confirmed (required): boolean Errors: - 400 The request is invalid (`validation_failed` lists the fields in `errors`) (application/problem+json) - 429 Rate limit reached (`rate_limited`): wait `Retry-After` seconds (application/problem+json)