Skip to content

API Overview ​

FlareKey exposes three separate surfaces. The dashboard API manages your workspace and is authenticated with a management API key that must never leave your own systems. A generated v2 loader uses the session-bound runtime API, while a custom loader uses Script Library. Neither shipped-loader path carries your management key. Mixing the surfaces or credential scopes up is the most common and most damaging integration mistake, so this page covers which credential goes where before you start.

Getting your management API key ​

  1. Open the dashboard and go to your account settings.
  2. Generate or regenerate the management API key. The full key is shown once, at creation time. Store it immediately in your secret manager.
  3. Afterwards only a masked preview and the creation date are visible; FlareKey stores a hash, not the key, and cannot show it to you again.
  4. Send it as an HTTP header on dashboard API calls: Authorization: Bearer fk_live_xxx
  5. Lost or leaked keys are replaced by regenerating, which immediately invalidates the previous key. Rotation has to be done from a signed-in session, not with the API key itself.

The credentials, and which are safe to ship ​

CredentialLooks likeUsed bySafe in a shipped loader?
Management API keyfk_live_...Your own backend or tooling, against /api/dashboard and /api/obfuscationNo. It can manage your entire workspace
Customer license keyFLARE-XXXX-XXXX-XXXX-XXXXThe customer running your scriptYes. This is the value a buyer holds
Generated-loader session tokenapi_sess_...One v2 runtime session, returned by license verificationYes. Short-lived and session-bound
Generated-loader ticketticket_...Authorizing exactly one protected downloadYes. Single use
Script Library tokenlibdl_...One custom-loader verification and downloadYes. Short-lived, one use, and policy-bound
Script Library execution grantexec_...Activating the exact artifact that was just downloadedYes. Short-lived and one use

The old service runtime key (pk_...) and runtime secret are retained for legacy compatibility and admin/TOTP workflows. New v2 generated loaders and Script Library do not need the service runtime key. Never ship the runtime secret.

Security awareness ​

  • Anything a public loader can read is public. A customer can read every string in the script they were given, so the only credentials that belong there are the ones scoped to that customer's own session.
  • The generated-loader flow is deliberately layered: a license key starts a session, the session buys a single-use ticket, and only the ticket downloads code. Script Library uses a separate libdl_ verify token, then an exact-artifact download and one-use exec_ activation grant. Do not collapse either flow or cache its results across users.
  • https://library.flarekey.xyz is an API host. Its root redirects to these docs; browser navigation to protected API paths is intentionally rejected with 401. Use the documented HTTP requests from a loader or trusted backend.
  • Rotate a management key the moment you suspect exposure. Regenerating invalidates the old key immediately.
  • Treat error codes as machine-readable outcomes rather than strings to display. Back off on rate_limited, re-verify on session_expired, and request a new ticket on ticket_used or ticket_expired.
  • Never send management credentials from a browser. Calls that use fk_live_ keys belong on a server you control.

Limits ​

Two separate limits apply: a monthly request allowance tied to your plan, and a fixed per-minute rate limit that protects the service from bursts.

PlanAPI requests / month
Free10,000
Basic200,000
Advanced1,500,000
ProUnlimited
EnterpriseUnlimited
Rate limitCeiling
Runtime and API endpoints120 requests per minute
Dashboard write actions60 requests per minute
License key generation20 requests per minute
Authentication attempts20 per 15 minutes
  • Exceeding a rate limit returns the rate_limited error code. Back off and retry rather than looping.
  • Unlimited means the plan is not subject to the normal monthly cap. Per-IP abuse protection still applies.

Next

API Usage documents every runtime and dashboard endpoint with its request, response and error codes.

FlareKey documentation