API Keys
BraidPay API keys allow developers to securely connect their applications to BraidPay. Keys are scoped and environment-specific (Test or Live) to ensure proper access control. You can create, revoke,
Creating an API Key
Navigate to Settings → API Keys in your BraidPay Dashboard.
Click Create API Key.
Choose:
Label: A human-readable name (e.g. My Storefront).
Scope:
checkout: create checkout sessions and payment links.read_only: view transactions, invoices, balances.full: full API access.
Environment:
testorlive.
Copy the generated key — you will only see it once.
Using API Keys
Include your key in the Authorization header:
POST https://api.braidpay.com/v1/checkout-sessions
Authorization: Bearer sk_test_xxx123
Content-Type: application/json
Rotating & Revoking
Rotate: Creates a new key while the old one remains valid for a short grace period.
Revoke: Immediately disables a key.
🚀 Developer Quickstart
Step 1: Create a Checkout Session
Response:
Step 2: Redirect Customer
Your webhook will receive events such as payment.succeeded:
Verify the signature (see Webhooks doc).
Last updated