Cookbooks and recipes home
This page contains recipes that are designed to help you use and integrate Payabli. Recipes are short tutorials that cover a workflow. We’ve organized these by Payabli product area.
Browse by product
General recipes
Recipe: Authentication guide
/// Step 1: Provision API credentialsIn the Payabli Portal, go to Developers > API Credentials and create an API Authentication credential. You receive a client ID and a client secret, scoped to an environment. Store the secret securely — Payabli shows it only once.
/// Step 2: Get an access token
Exchange your client ID and secret at the token endpoint for a short-lived Bearer access token. The token’s lifetime is returned in the response’s expires_in field (in seconds).
/// Step 3: Add the token to request headers
Send the access token in the Authorization header as a Bearer token. All API requests must be made over HTTPS.
/// Step 4: Add idempotency key (recommended)
Include a unique idempotencyKey header to prevent duplicate transactions. This key persists for 2 minutes.
Learn more about credentials, tokens, and idempotency in OAuth authentication and the API overview.