Clearway Documentation
  • Home
  • Guides
  • Merchant API
  • Investor Read API
API integration
Getting startedAuthenticationAPI keys and scopesRequest headersIdempotencyErrorsWebhook verificationWebhook eventsOrders and revenueSubscriptionsCheckout integrationDashboard vs APIRate limits
Investor / LP
Investor Read API
Merchant dashboard
Getting startedPayment links & chargesPayment widgetClearway ElementsCheckout & branding
powered by Zudoku
Guides

API keys and scopes

API keys and scopes

Manage keys in the dashboard at Developer → API → Keys (https://app-dev.clearway.to/developer/api/keys).

Key modes

ModePrefixUse
Sandbox / testclwy_test_…Dev integrations and playground testing
Liveclwy_live_…Production — moves real money on write operations

Use Sandbox or test keys when following examples on this site ({docsEnv.keyPrefixExample}).

Scope templates

When creating a key, pick a template that matches your integration:

TemplateTypical useNotable scopes
Widget / CheckoutBrowser checkout via your server proxycreate:checkout_session, create:payment_link
Backend integrationServer-only automationcreate:payment_link, read:products, …
GeneralDashboard-style testingBroader read + checkout scopes

Each API operation in the API Reference lists its required scope. Missing scope → 403 FORBIDDEN.

Product writes (CREATE_PRODUCT, UPDATE_PRODUCT, DELETE_PRODUCT) are dashboard-first today. The public API exposes LIST_PRODUCTS and GET_PRODUCT read operations under read:products.

Reserved scopes such as full_access are not assignable from the dashboard.

Origin allowlist (browser-facing keys)

Keys used from browser contexts (widget / checkout flows) can require an allowed origins list. Server-only backend keys typically leave origins empty.

Edit origins on an existing key row in the dashboard, or during creation for widget keys.

Rotation and revocation

  1. Create a new key with the same scopes.
  2. Deploy the new secret to your servers.
  3. Revoke the old key from the dashboard.

Revoked keys remain visible under Inactive keys for audit context.

Security

  • Never embed API keys in HTML, mobile apps, or client-side JavaScript.
  • Never paste live keys into the docs API Reference playground.
  • Widget integrations must use a server proxy — see Checkout integration.

Next steps

  • Authentication — how to send the key
  • Checkout integration — widget proxy pattern
  • API Reference — scope per operation
Last modified on July 22, 2026
AuthenticationRequest headers
On this page
  • Key modes
  • Scope templates
  • Origin allowlist (browser-facing keys)
  • Rotation and revocation
  • Security
  • Next steps