Securely Connect Overview

What Securely Connect is, how the auth server and resource API fit together, and where to start.

Securely Connect is the OAuth 2.0 + OpenID Connect platform that lets your application authenticate against Securely and act on behalf of a merchant or business β€” to create payment links, process charges, and read transactional data.

The platform is split into two surfaces:

SurfaceBase URLPurpose
Authorization Serverhttps://auth.securelyme.ioIssues tokens. Hosts /oauth/authorize, /oauth/token, /consent, /.well-known/jwks.json, /.well-known/openid-configuration.
Resource APIhttps://api.securelyme.ioAccepts your access token and performs business operations (payment links, transactions, customers, etc.).
πŸ“˜

Sandbox URLs

While you're integrating, use https://sandbox-auth.securelyme.io and https://sandbox-api.securelyme.io. Production URLs are above.

How the pieces fit together

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    1. authorize    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Your App    β”‚ ─────────────────► β”‚ auth.securelyme.io β”‚
β”‚              β”‚ ◄───────────────── β”‚  (token issuer)    β”‚
β”‚              β”‚   2. access_token  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚              β”‚
β”‚              β”‚    3. API call     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              β”‚ ─────────────────► β”‚ api.securelyme.io  β”‚
β”‚              β”‚ ◄───────────────── β”‚  (resource API)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   4. response      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Every request to the resource API carries a JWT access token that the auth server issued. The resource API verifies that token against the public keys at /.well-known/jwks.json.

Two questions decide your integration

Before writing any code, decide:

  1. What party type are you? second-party or third-party. This determines whether your end users see a consent screen and which grant types you can use. See Second-Party vs Third-Party.
  2. What client type are you? Public or confidential. This determines whether you authenticate with a client_secret or with PKCE. See Public vs Confidential Clients.

Once you know both, the Choosing Your OAuth Flow guide tells you exactly which endpoints to call and in what order.

What you can do with the API

  • Issue access tokens with authorization_code + PKCE, refresh_token, or client_credentials grants.
  • Create checkout payment links that customers complete themselves.
  • Create charge payment links that an agent or cashier drives.
  • Choose how a payment authorizes β€” AUTH_CAPTURE for one-step, or PREAUTH for a hold-then-capture flow.
  • Refresh tokens with one-time-use rotation that detects token replay.

Where to start




What’s Next

Second-Party vs Third-Party β€” pick your category.

Did this page help you?