Authentication

Every request must include your API key in the Authorization header.

Request Header

Authorization: Bearer sk_live_your_api_key

Manage Keys

Create, rotate, and revoke from the Developers section.

Keep Secure

Never expose in client code, repos, or frontend bundles.

Advanced Security

Configure IP allowlists, scoped permissions, and key rotation.

Authentication

Base URL: https://api.hlhunt.org/v1 — every endpoint in this reference is relative to it (https://payments.hlhunt.org/api/v1 reaches the same handlers; see Base URLs & Hosts). Send your API key in the Authorization header as a Bearer token: Authorization: Bearer sk_live_... (the bare key without Bearer is also accepted). Secret keys (sk_) are for your server; publishable keys (pk_) are for the browser and are accepted only by POST /v1/capture-session and POST /v1/payment-methods. The key prefix selects the mode (sk_test_ / pk_test_ for the sandbox, sk_live_ / pk_live_ for production) and the key is bound to one business, so no merchant_id parameter is needed. A missing or bad key answers 401 with error.type authentication_error and a code such as missing_api_key, invalid_api_key, key_revoked, key_expired or wrong_key_type (403).

GET
/v1/auth/me

Get current user

Returns the currently authenticated user's profile information.

curl -X GET https://api.hlhunt.org/v1/auth/me \
  -H "Authorization: Bearer sk_live_your_api_key"