Skip to content

API key security

Every Flint API key acts as your merchant with every scope it holds, and a flint_live_ key moves real money. Keep your keys on your server, limit what each one can do, rotate them without downtime, and know what to do the moment one leaks. To send a key and read the authentication errors, see Authentication.

Keep keys on your server#

Flint has no publishable key. Every flint_test_ and flint_live_ key is a secret key, so it belongs only in server-side code and server-side configuration.

Important: Never put a key in client code

Anything you ship to a browser, mobile app, or desktop client is public, however it is obfuscated. Treat a key that has appeared in frontend JavaScript, a mobile binary, or a public repository as leaked, and revoke it.

Buyer-facing flows never need a key on the buyer's device:

  • Hosted checkout and payment links send the buyer to a Flint page at the session's or link's url, which your server creates. See Checkout sessions.
  • Embedded payments mount Stripe Elements from the order's payment_collection, which holds no secrets. The browser sends a single-use Stripe credential to your backend, and your backend calls Flint. See Embedded payments.
  • Headless checkout and customer accounts run through your backend, which holds the checkout credential or customer session secret and relays only the calls your pages need. See Headless checkout security.

If your frontend needs data that only your key can read, add a server endpoint that fetches it. Don't move the key to the client.

Know which values are secret#

The first four values below are secrets. The last three are identifiers: use them in logs, dashboards, alerts, and support requests to name a credential without exposing it.

ValueLooks likeIf someone else gets it
API keyflint_test_..., flint_live_...They can call the API as your merchant with every scope the key holds
Webhook signing secretwhsec_...They can sign fake deliveries that your HMAC webhook handler accepts as real
Checkout credentialckat_...They can change and pay one checkout session's order
Customer session secret and refresh tokenflint_cses_..., flint_cref_...They can act as one buyer on /v1/me
API key IDkey_...Nothing. Safe to log
Key prefix, key_prefixflint_live_5c1e9a07Nothing. Safe to log; it matches the start of the secret so you can tell keys apart
Webhook endpoint IDwhep_...Nothing. Safe to log

Secrets never belong in logs, error messages, analytics events, tickets, screenshots, or prompts to AI tools. Your requests to Flint carry their credential in the Authorization header, so redact that header in your request logging, proxies, and error reporters.

Flint stores only a hash of each API key, so the full secret_key appears only in the response that creates the key, and in an idempotent replay of that same create request. Flint can't show it again. If you lose a key, create a replacement and revoke the old one.

Store keys outside your code#

Load keys from the environment or a secrets manager, such as AWS Secrets Manager, Vault, Doppler, or your platform's equivalent, and keep the values out of the repository:

Shell
# .env (never committed)
FLINT_API_KEY=flint_live_...
FLINT_WEBHOOK_SECRET=whsec_...
Shell
# .gitignore
.env
.env.*

Warning: Public env vars ship to the browser

Frontend bundlers compile variables with a public prefix, such as VITE_, NEXT_PUBLIC_, REACT_APP_, PUBLIC_, or EXPO_PUBLIC_, into the JavaScript they ship, where anyone can read them. Never give a Flint secret one of those prefixes. Name it FLINT_API_KEY and read it only in server code.

Where the key runs decides where it should live:

  • CI and cloud workloads. If the runner can get an OIDC token, use a workload identity instead of a stored key. The runner exchanges its token for a Flint access token that expires within an hour, so there is no long-lived secret to leak. Otherwise, keep the key in the CI provider's secret store and make sure job logs mask it.
  • Local development. flint auth import from the CLI stores a key in your OS keychain instead of a dotfile.
  • Servers. Inject the key at deploy time from your secrets manager.

Treat a committed key as leaked. Deleting it in a later commit doesn't remove it from history, clones, forks, or CI caches, and automated scanners watch public repositories for new secrets. This applies to private repositories too: revoke the key rather than rewriting history.

Scan for Flint prefixes. Add secret scanning to pre-commit hooks and CI, with a rule for each prefix in this table. Each one is a bearer secret: anyone who holds it can use it until it expires or you revoke it.

Starts withCredentialLifetime
flint_test_, flint_live_API keyUntil you revoke it or its expires_at passes
whsec_Webhook signing secretUntil you rotate it
fps_Partner app client secretUntil you rotate it; the previous secret keeps working for 24 hours by default
devsess_v1.Onboarding session token24 hours, with no refresh
devver_v1.Email verification token during onboarding15 minutes
ckat_v1.Checkout credential (checkout_auth_token)30 days
cklt_v1.Checkout launch token in a checkout URL's checkout_token fragment30 days, or 5 minutes when Flint issues it after a payment provider redirect
flint_cses_Customer session secret1 hour by default, from 5 minutes to 24 hours, and never past the session's refresh expiry
flint_cref_Customer session refresh tokenSingle use; 7 days by default, from 1 hour to 30 days
fcat_CLI access token15 minutes at most
fcrt_CLI refresh tokenReplaced on each refresh; the session ends 30 days after its last token was issued, or 90 days after login
fwat_Workload identity access token1 hour at most
fpat_Partner app token900 seconds; partner apps mint a new one, with no refresh token
aslaunch_v1.Merchant account session launch token4 hours

Scope keys to the job#

A key's scopes decide what a leak costs. Give each workload its own key, named for where it runs and holding only the scopes that job needs:

  • One key per service or integration, such as "Storefront backend", "Reporting worker", or "CI runner". When one leaks you revoke it without touching the others, and each key's last_used_at describes a single workload.
  • A restricted key for production. It holds exactly the scopes you list, and Flint never adds more. A full key gains every scope Flint adds for its mode, including key management, and a read_only key gains every new read scope. Both suit a local development or agent key you control. See Key access.
  • Only the scopes the job calls. Each operation in the API reference lists the scopes it accepts. A write scope satisfies its matching read scope where the scope catalog says so, so commerce.orders.write also covers commerce.orders.read.
  • No management scopes on application keys. A key with accounts.api_keys.write can mint new keys, and one with webhooks.write can point events at a new URL. Manage keys from the dashboard's API keys page or the CLI signed in as you, and leave those scopes off the keys your services run with.

A key can't grant more than it has. Over the API, a key can grant only scopes it holds, and can update or revoke only keys whose scopes it holds; otherwise the request returns 403 INSUFFICIENT_SCOPE. Only a freshly verified Dashboard or onboarding session, or a full key in the new key's mode, can grant full or read_only, or accounts.api_keys.write, accounts.workload_identities.write, commerce.gift_cards.secrets.write, or commerce.license_keys.secrets.write. A restricted key can't pass on key management even when it holds accounts.api_keys.write. So a leaked restricted key can't mint a broader one, or another key that mints keys. See credentials that can mint keys.

A reporting service that reads orders and payments needs two scopes. Create its key with a credential that holds accounts.api_keys.write and both scopes:

cURL
curl -X POST https://api.withflintpay.com/v1/api-keys \
  -H "Authorization: Bearer $FLINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Reporting worker",
    "access": "restricted",
    "scopes": ["commerce.orders.read", "payments.payment_intents.read"]
  }'
JSON
{
  "data": {
    "api_key_id": "key_01KX3V8Q2M5T7R9B4N6C1D3F5H",
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "name": "Reporting worker",
    "key_prefix": "flint_live_5c1e9a07",
    "secret_key": "flint_live_5c1e9a07...",
    "access": "restricted",
    "scopes": ["commerce.orders.read", "payments.payment_intents.read"],
    "status": "active",
    "partner_app_install_id": null,
    "created_by": {
      "resource_type": "user",
      "resource_id": "usr_01K0P7W6A4N9F3J2T8Q5R1C6XM"
    },
    "version": 1,
    "created_at": "2026-10-28T15:04:05Z",
    "updated_at": "2026-10-28T15:04:05Z"
  },
  "request_id": "req_01KX3V8Q9D2F4H6J8K0M2N4P6R"
}

Store secret_key in your secrets manager now. The new key is minted in the calling key's mode: a live key creates live keys, and a test key creates keys bound to its own sandbox. If this key leaks, the holder can read order and payment data. They can't create refunds, change payouts, or issue new keys.

When a connected platform needs an API key, create a restricted key with partner_app_install_id set to that platform's install. Revoking the install then revokes the key and deletes merchant webhook endpoints linked to the same install. Without a link, removing the app leaves the key and its endpoints working until you separately revoke or delete them.

Set the link only at creation, with a live credential or a Dashboard session. The install must be active and authorized for the key's environment. Each install can have up to 25 active linked keys and 25 linked endpoints per environment. Don't send null on create; omit the field for a key you intend to keep independent of an app.

Keys and endpoints a linked key creates inherit its link. Linked keys can't create workload identities, partner app client credentials, customer access links, or delivery rate callbacks. They also can't create a sandbox with issue_test_key: true, rotate a partner app's client secret, regenerate an invoice public link, or copy webhook endpoints. Workload identity updates that change the subject, claim conditions or scopes, or reactivate the identity, are refused too. See linked-key restrictions.

Reinstalling an app doesn't restore its old keys or endpoints. When replacing a linked key from a credential that isn't itself linked, set the same install ID on the replacement. What revoking an install ends covers environment grants and unlinked access you still need to end.

Expire temporary keys#

A contractor's engagement, a one-off migration script, a load test, or a demo has an end date. Set expires_at when you create the key, and it stops authenticating on schedule whether or not anyone remembers it:

cURL
curl -X POST https://api.withflintpay.com/v1/api-keys \
  -H "Authorization: Bearer $FLINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Catalog migration",
    "access": "restricted",
    "scopes": ["commerce.products.write"],
    "expires_at": "2026-12-01T00:00:00Z"
  }'
  • expires_at is an RFC 3339 timestamp in the future. A past time or an unparseable value returns 400 INVALID_REQUEST with param expires_at. Omit it and the key never expires.
  • When the time passes, the key's status becomes expired and every request with it returns 401 INVALID_CREDENTIAL with details[0].reason expired.
  • If the work runs long, PATCH /v1/api-keys/{api_key_id} with a later expires_at extends the key, and a future expires_at reactivates a key that has already expired. Send "expires_at": null to remove the expiry. A revoked key can't be updated.
cURL
curl -X PATCH https://api.withflintpay.com/v1/api-keys/key_01KX4A2B6C8D0E2F4G6H8J0K2M \
  -H "Authorization: Bearer $FLINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expires_at": "2026-12-15T00:00:00Z"}'

Rotate keys without downtime#

Rotation limits how long a key that leaked without anyone noticing stays useful. API keys have no rotate endpoint. You create a replacement, deploy it, and revoke the old key, and both keys authenticate during the switchover, so traffic never stops:

  1. Create the replacement#

    Create a key with the same access as the one you are retiring, from a credential in the same mode. For a restricted key, send the same scopes too. Omit scopes for a full or read_only key: sending them returns 400 INVALID_REQUEST with detail NOT_ALLOWED and param: scopes. For a test key, create it from a key bound to the same sandbox, or with the sandbox API keys endpoint. Save secret_key from the response.

  2. Deploy it#

    Update the value in your secrets manager and roll your servers. Both keys work during the rollout.

  3. Confirm the old key is unused#

    Read the old key with GET /v1/api-keys/{api_key_id} and watch last_used_at. Flint updates it at most about once a minute while the key is in use, so once it stops advancing for several minutes, nothing is sending the old key.

  4. Revoke the old key#

    Call POST /v1/api-keys/{api_key_id}/revoke. Revocation is immediate and permanent. Anything still sending the old key gets 401 INVALID_CREDENTIAL with details[0].reason revoked, which shows up in your own application logs as a service that missed the deploy.

Instead of revoking in the last step, you can set the old key's expires_at to the end of your rollout window. It stops working on schedule even if nobody comes back to revoke it.

Rotate whenever someone with access to production secrets leaves, and after a security incident at a vendor that held the key, such as your CI provider, log aggregator, or host. A fixed schedule on top of that, such as every quarter, keeps rotation routine.

Audit your keys#

last_used_at makes a periodic audit quick. List active keys with the least recently used first. Keys that have never been used have no last_used_at and sort before the rest:

cURL
curl "https://api.withflintpay.com/v1/api-keys?status=active&sort_by=last_used_at&sort_direction=asc" \
  -H "Authorization: Bearer $FLINT_API_KEY"
JSON
{
  "data": [
    {
      "api_key_id": "key_01KWK4Q8Z1MB7F0T2S9R3V6HAX",
      "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
      "name": "Load test (March)",
      "key_prefix": "flint_live_9f8e7d6c",
      "access": "restricted",
      "scopes": ["commerce.orders.write"],
      "status": "active",
      "partner_app_install_id": null,
      "last_used_at": "2026-03-30T16:41:22Z",
      "created_by": {
        "resource_type": "user",
        "resource_id": "usr_01K0P7W6A4N9F3J2T8Q5R1C6XM"
      },
      "version": 1,
      "created_at": "2026-03-12T08:30:00Z",
      "updated_at": "2026-03-12T08:30:00Z"
    },
    {
      "api_key_id": "key_01KWJ93G11C7MF8REX91MDS0CD",
      "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
      "name": "Storefront backend",
      "key_prefix": "flint_live_1a2b3c4d",
      "access": "restricted",
      "scopes": ["commerce.orders.write", "payments.payment_intents.write"],
      "status": "active",
      "partner_app_install_id": null,
      "last_used_at": "2026-10-28T09:14:07Z",
      "created_by": {
        "resource_type": "user",
        "resource_id": "usr_01K0P7W6A4N9F3J2T8Q5R1C6XM"
      },
      "version": 2,
      "created_at": "2026-04-18T12:00:00Z",
      "updated_at": "2026-06-02T10:00:00Z"
    }
  ],
  "next_page_token": "eyJjIjoia2V5XzAxS1dKOTMifQ",
  "request_id": "req_01KX3VB1C3E5G7J9K1M3P5R7T9"
}

A key holder sees only keys in its own mode: a live key lists live keys, and a test key lists keys bound to its sandbox. Follow next_page_token until it is absent to see every key. The first key here was made for a load test in March and hasn't been used since. A key nobody uses can only cause harm, so revoke it:

cURL
curl -X POST https://api.withflintpay.com/v1/api-keys/key_01KWK4Q8Z1MB7F0T2S9R3V6HAX/revoke \
  -H "Authorization: Bearer $FLINT_API_KEY"

Webhook signing secrets#

New webhook endpoints sign deliveries with JWTs that you verify against Flint's public keys, so they have no shared secret to protect. An endpoint whose signing_methods include hmac has its own whsec_ secret, one per endpoint. A leaked whsec_ doesn't let anyone call your API, but it lets them sign fake events that your handler accepts, such as an order.paid that makes a fulfillment handler ship an unpaid order. Store whsec_ values like keys, and rotate them as soon as one may have leaked.

  • POST/v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secretRequired API key scope: webhooks.writeReference for POST /v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secret

    Issue a new secret, returned once. For 24 hours by default, deliveries carry signatures from both the old and new secrets, so you can deploy without dropping events. If the old secret leaked, send expire_previous_secret_at set to the current time to stop it at once. If the secret leaked has the full procedure.

Secrets belong to one endpoint, and endpoints belong to one mode. A sandbox endpoint's secret doesn't verify deliveries to your live endpoint, so register the live endpoint when you go live and deploy its secret. Webhooks covers signature verification, raw-body handling, and rotation in practice.

If a key leaks#

Subscribe to api_key.created, api_key.updated, and api_key.revoked to monitor credential changes. Events include the key's created_by reference and never include its secret. Register endpoints in each sandbox you monitor and in live mode. Passing expires_at sends no event. See API key events.

Run this playbook for a key committed to a repository, pasted into a ticket or chat, printed in a build log, or one you can't account for. A few minutes of errors while you deploy a replacement can be fixed; an attacker holding a live key can move money. If you're unsure whether a key leaked, revoke it anyway.

  1. Revoke it now#

    The quickest path is the dashboard's API keys page; for a test key, select its sandbox first. Over the API, revoke with another key in the same mode that holds accounts.api_keys.write and every scope the leaked key holds. For a full key, that means another full key.

    cURL
    curl -X POST https://api.withflintpay.com/v1/api-keys/key_01KWJ93G11C7MF8REX91MDS0CD/revoke \
      -H "Authorization: Bearer $FLINT_API_KEY"
    
    JSON
    {
      "data": {
        "api_key_id": "key_01KWJ93G11C7MF8REX91MDS0CD",
        "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
        "name": "Storefront backend",
        "key_prefix": "flint_live_1a2b3c4d",
        "access": "restricted",
        "scopes": ["commerce.orders.write", "payments.payment_intents.write"],
        "status": "revoked",
        "revoked_at": "2026-10-28T15:21:44Z",
        "last_used_at": "2026-10-28T15:20:31Z",
        "created_by": {
          "resource_type": "user",
          "resource_id": "usr_01K0P7W6A4N9F3J2T8Q5R1C6XM"
        },
        "version": 3,
        "created_at": "2026-04-18T12:00:00Z",
        "updated_at": "2026-10-28T15:21:44Z"
      },
      "request_id": "req_01KX3VD4F6H8K0M2P4R6T8V0X2"
    }
    

    Revocation takes effect immediately and can't be undone. Revoke first and fix your deployment second. If someone else already revoked it, the call returns 409 ACTION_NOT_ALLOWED with reason already_applied, and the key is already dead.

  2. Remove what it created#

    Revoking a key doesn't revoke what it made, and anything the attacker created keeps working. Check each of these the leaked key had the scope for:

    • API keys (accounts.api_keys.write). List the keys the leaked key created by passing its ID as created_by_id, then revoke each one. Repeat for each key you revoke, until the list comes back empty, because revoking a key never revokes the keys it created:

      cURL
      curl "https://api.withflintpay.com/v1/api-keys?created_by_id=key_01KWJ93G11C7MF8REX91MDS0CD&status=active,expired" \
        -H "Authorization: Bearer $FLINT_API_KEY"
      

      The list covers the calling credential's environment. A live key can also mint test keys through the sandbox endpoints, and those are listed only within their sandbox. Run the same list with a key bound to each sandbox, check each sandbox on the API keys page, which lists every key, or archive a sandbox you don't need, which revokes all of its keys. Keys a workload token minted name its workload identity, so filter by its wid_ ID the same way. Keys a workload token minted before Flint recorded workload identity creators name the user who set up the workload identity instead, so also list that user's keys with created_by_type=user&created_by_id=usr_... and check each one's created_at against when the workload ran.

    • Workload identities (accounts.workload_identities.write). List them with GET /v1/workload-identities and archive any whose created_by names the leaked key, with DELETE /v1/workload-identities/{workload_identity_id}.

    • Webhook endpoints (webhooks.write). An endpoint receives your event data at whatever URL it names. List the endpoints the leaked key created by passing its ID as the created_by filter, then delete each one with DELETE /v1/webhook-endpoints/{webhook_endpoint_id}:

      cURL
      curl "https://api.withflintpay.com/v1/webhook-endpoints?created_by=key_01KWJ93G11C7MF8REX91MDS0CD" \
        -H "Authorization: Bearer $FLINT_API_KEY"
      

      Endpoints created before Flint recorded who made them have no created_by, and the filter never returns them. Review every endpoint without a created_by by hand and delete any you didn't register.

  3. Deploy a replacement#

    Create a key with the same scopes, or fewer, and roll it out through your secrets manager, as in a routine rotation.

  4. Review the exposure window#

    Start with the revoked key's last_used_at. If it never advanced beyond your own traffic, the key was probably not used by anyone else. Either way, list the leaked key's requests between the leak and the revocation, with a key in the same mode that holds developer.request_logs.read, or on the dashboard's Logs page:

    cURL
    curl "https://api.withflintpay.com/v1/api-request-logs?caller_id=key_01KWJ93G11C7MF8REX91MDS0CD&created_after=2026-10-27T00:00:00Z" \
      -H "Authorization: Bearer $FLINT_API_KEY"
    
    JSON
    {
      "data": [
        {
          "api_request_log_id": "rlog_01KX3V2C4E6G8J0K2M4P6R8T0V",
          "caller": {
            "resource_type": "api_key",
            "resource_id": "key_01KWJ93G11C7MF8REX91MDS0CD"
          },
          "created_at": "2026-10-28T03:12:09Z",
          "http_method": "POST",
          "path": "/v1/refunds",
          "route_pattern": "POST /v1/refunds",
          "resource_type": "refund",
          "resource_id": "ref_01KX3V2C9Q1S3V5X7Z9B1D3F5H",
          "status_code": 201,
          "latency_milliseconds": 318,
          "request_id": "req_01KX3V2C4E6G8J0K2M4P6R8T0W"
        }
      ],
      "request_id": "req_01KX3VF7H9K1M3P5R7T9V1X3Z5"
    }
    

    Look for orders, refunds, payout changes, customer reads, and webhook changes you didn't make. GET /v1/api-request-logs/{api_request_log_id} adds each request's ip_address and user_agent, which tell your servers apart from anyone else's. Summaries and those fields are kept for 90 days, and headers and bodies for 14 days. Request logs cover one environment, so search the mode the key belongs to; for a test key, use a key bound to the same sandbox. Requests that fail authentication aren't logged, so attempts with the key after you revoke it leave no entries. See Debugging for every filter.

  5. Rotate everything that leaked with it#

    Keys rarely leak alone. If a .env file, config bundle, or CI log leaked, every secret in it is exposed: other Flint keys, whsec_ secrets, and third-party credentials. Rotate them all.

  6. Contact Flint if money moved#

    If you find payments, refunds, or payout changes you didn't make, ask Flint Help and include the request_id of each request. Every response also returns it in the X-Request-Id header.

If a session or mailbox leaks#

An onboarding session token (devsess_v1.), a CLI login, or access to the mailbox you sign in with acts as you, not as a key. Its requests and the keys it creates are recorded with your user ID (usr_...) as the user caller and creator, the same as your Dashboard writes:

  1. Secure the mailbox, and sign out of the Dashboard and the CLI. An onboarding session can't be ended early; it stops working 24 hours after it was issued.
  2. Review its requests with GET /v1/api-request-logs?caller_type=user&caller_id=usr_... in each environment. Onboarding session requests are logged in the default sandbox, apart from sandbox management requests, which are logged in live mode.
  3. List the keys accountable to that user with GET /v1/api-keys?created_by_user_id=usr_... in each environment, or on the Dashboard's API keys page, and revoke any you didn't make. The filter includes keys their API keys or workload identities created. Then follow Remove what it created for each revoked key.
  4. Review sandboxes you didn't create on the Dashboard's Sandboxes page, and archive them, which revokes their keys.

Flint has no cascading revoke: revoking a key or ending a session leaves what it created working until you revoke each item.

Errors#

These are the errors key handling produces. The Authentication guide lists every authentication error.

  • HTTP 401
    The key can't authenticate. details[0].reason is revoked after a revoke, expired after expires_at passes, and unknown for a key Flint doesn't recognize. Deploy an active key. A revoked error in your logs after a rotation names a service that is still sending the old key
  • HTTP 403
    Reason scope_not_granted: the calling key lacks a scope the route needs. Reason scope_not_held: when creating, updating, or revoking a key, the calling key must hold every scope it grants and every scope the target key holds. details[0].missing_scopes lists the ones it lacks. Use the dashboard or a key that holds them
  • HTTP 403
    With details[0].reason full_access_required: only a full key, or a freshly verified Dashboard or onboarding session, can grant full, read_only (param access), or a step-up scope (param scopes[i]). Leave it out, or create the key in the dashboard
  • HTTP 403
    A signed-in session last verified its identity more than 300 seconds ago, per details[0].verified_at, and can't grant full, read_only, or a step-up scope until it verifies again. Verify again and retry
  • HTTP 404
    The key ID doesn't exist in the calling key's mode. A live key can't see test keys, and a test key sees only keys bound to its own sandbox. Manage the key from a credential in its mode, or from the dashboard
  • HTTP 409
    The key is already revoked. A revoke returns reason already_applied, and the key needs nothing more. A revoked key can't be updated; create a new one

Checklist#

  • Keys live in server-side environment variables or a secrets manager, never in code, client bundles, or commits.
  • CI and cloud workloads use workload identities where they can, and otherwise the provider's secret store with masked logs.
  • Secret scanning watches commits for every Flint secret prefix.
  • Each service has its own restricted key, named for where it runs, with only the scopes it calls and no key or webhook management scopes.
  • Temporary access has an expires_at.
  • Rotation has an owner and a schedule, and also runs when people leave and after vendor incidents.
  • Keys with a stale last_used_at get revoked.
  • whsec_ secrets are stored and rotated like keys.
  • Everyone on call knows how to revoke a key from the dashboard.

Next steps#

AuthenticationSend a key, test and live modes, key access, and every authentication error.API key scopesEvery scope, what it grants, and which keys include it.WebhooksSignature verification and signing secret rotation.Going liveSwap sandbox credentials for live ones.

Was this helpful?