Logo

Flamesight API reference

Explore Risk, Event, Simulation, Detection, and Credentials endpoints with complete parameter contracts, working request bodies, and copyable examples.

API access

Product APIs accept workspace-scoped PATs and service credentials in the Authorization header.

Create API credentials
1

Accept your Flamesight invite and sign in to confirm your workspace access.

2

Open API Tokens and create a PAT for human tooling or a service credential for backend systems.

3

Select only the credential actions your integration needs.

4

Send the token in the Authorization header and call the product API base URL.

Authentication

Choose a credential type based on who or what is calling the API.

Personal Access Token

fs_pat_...

Best for notebooks, Postman, command-line testing, and human-operated workflows.

Service Credential

fs_svc_...

Best for customer backends, scheduled jobs, CI/CD, workers, and machine-to-machine usage. One holding credential.manage can also manage the service credentials of its own workspace.

Browser Session

Identity Platform JWT

Used by the Flamesight web app for account and workspace administration, including personal access tokens. A workspace admin creates the first service credential by hand here, and rotation is a browser-only route.

Request Pattern

All product API credentials use the standard bearer header.

Authorization: Bearer fs_pat_...
Authorization: Bearer fs_svc_...

Credentials are scoped to one workspace, restricted to selected actions, expire at the time you set, and can be revoked from the Account page. Secrets are shown once when created.

API Reference

ReDoc-style contracts, examples, authorization requirements, and safe live queries.

Risk API

Read annual burn probability for a precisely defined circular area. Each request that returns a successful (2xx) response uses one query from your workspace’s monthly allowance, including a successful Event query that finds no matching events. Requests that return no data (404, or a 200 answer whose display is "n/a"), name a split event ID that no single event holds (409), are invalid (400, 422), or fail on our side (5xx) are not charged. A workspace that has spent its allowance receives 429 before any lookup is made.

API base URL

https://flamesight.pinepeak.co.uk/api/v1/risk

Credential scope: Requires the fire_intelligence.risk.read action. Available actions depend on your workspace entitlements.
Coverage: California

Status Codes

Common API responses and what to do next.

CodeMeaning
400The request shape, parameters, or payload are invalid.
401No valid user session, PAT, or service credential was supplied.
403The credential is valid but does not have the required workspace action or entitlement.
404The requested resource does not exist in the current workspace scope. On the Risk and Event APIs it means there is no data for the request (no value for the point, or no event under that ID, including an ID that has been withdrawn), and it is not charged to your monthly query allowance.
409On the Event API, GET /v1/event/{event_id} returns it when the ID named a fire that was split and no event holds it (detail.event_ids lists the parts; look them up with POST /v1/event/details); that case is not charged to your monthly query allowance. Elsewhere it means the request conflicts with current workspace state, quota, or membership rules: creating a service credential returns it when the workspace is at its active credential cap, 25 by default, and only revoking a credential clears it.
422The request body or parameters do not match the schema, for example an Event query radius_m above 7,500 m. The body is a list of {loc, msg, type}. Not charged.
429The workspace or service is rate limited. Risk and Event requests return it when the workspace has spent its monthly query allowance. Creating a service credential returns it when the workspace has spent its monthly creation limit, 100 by default. Each clears when the month rolls over.
503A dependency is temporarily unavailable. On the Risk and Event APIs, the service could not check your workspace’s entitlement; on the Risk API it also means burn-probability data is temporarily unavailable. Retry with backoff. Not charged.
5xxA Flamesight service or downstream dependency failed. Retry safely where the endpoint is idempotent.

Security Checklist

Keep API access narrow, auditable, and recoverable.

Use service credentials only from server-side systems, never browsers.
Grant only the actions needed by the integration.
Set credential expiries and rotate long-running integrations on a schedule.
Revoke credentials immediately if they appear in logs, screenshots, tickets, or chat.