keyAPI 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

  1. Navigate to Settings → API Keys in your BraidPay Dashboard.

  2. Click Create API Key.

  3. 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: test or live.

  4. 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