Documentation menu
Getting started

Authenticate server-side requests with Bearer API keys.

View raw

Authentication

Authenticate every request with your secret API key in the Authorization header:

http
1Authorization: Bearer plk_live_YOUR_SECRET_KEY
bash
1curl https://paylinky.vercel.app/api/v1/balance -H "Authorization: Bearer $PAYLINKY_KEY"

Key format

KeyWhereDescription
plk_test_<48 hex>Server onlySandbox key — simulated payments
plk_live_<48 hex>Server onlyLive key — real money, requires activation
whsec_…Server onlyWebhook signing secret (not an API key)

Keys are stored hashed. The full key is shown only once at creation or when you roll it. If you lose it, roll the key from Developers → API Keys.

Authentication errors

HTTPerrorCause
401unauthorizedMissing, malformed, unknown, rejected or revoked key
403key_not_activatedKey is waiting for administrator activation
403kyc_requiredLive key but KYC is not approved
403account_suspendedAccount suspended
429rate_limitedDefault 120 requests per minute per key
503maintenanceLive API temporarily under maintenance
Never put a Paylinky key in a browser, mobile app, or Git repository. Call the API from your backend and expose only the resulting payment_link or payment status to clients.