Flightplan Public API v1

Org-scoped REST for external systems. Not the internal UI API. Not MCP.

Base URL

https://api.flpl.ai/v1

Authentication

An org admin or manager requests developer access in Settings. Flightplan staff approve it, then that person mints a key. Shown once. Tied to one organization.

X-Flightplan-Key: fpk_live_…

Authorization: Bearer fpk_live_… is also accepted. MCP keys (flightplan_…) are rejected.

The {org_slug} in the path must match the key's org or the call returns 404.

Scopes

ScopeUse
projects:readGET project, staffing, work-items, roster, teams, labor-estimate, monthly capacity, schedule movement, templates, archive catalog
projects:writePOST project (optional labor_estimate); PUT labor-estimate (receipt only); PATCH identity (external_id / code / contract_number)
webhooks:manageRegister HTTPS callbacks

Create a project

POST /{org}/projects
X-Flightplan-Key: fpk_live_…

{
  "external_id": "ext:SO-10491",
  "name": "Acme Arena — Bowl LED",
  "client_name": "Acme Entertainment",
  "contract_number": "SO-10491",
  "start_date": "2026-09-01",
  "end_date": "2026-12-15",
  "source": { "type": "blank" }
}

external_id is the idempotency key. Send the same namespaced id twice and you get the existing project back (200 + Idempotent-Replay: true) with no mutation. Use a prefix such as ext: so it never collides with leftover imported list ids.

source.type can be blank, template (needs template_id from GET /templates), or archive (if archive import is enabled; catalog via GET /archive/projects). Archive structure copies tasks without hours or team stamps. Status is always planned.

Optional labor_estimate is stored as sent. Hours are authoritative (crew and days are display only). Each role binds through the org map, or a per-row team_id that must be this org and active — never by matching the role to a team name. Unmapped roles do not fail the create. On first template create, bound teams' template demand is scaled to the hours sent (explicit 0 clears that team; a role not sent is left alone). A mapped team with no template demand is stored and warned, not invented. A second POST with the same external_id ignores a new estimate (labor_ignored_on_replay). Empty roles is 422. Warnings sit on the envelope when present, not inside data.

To replace the stored table on an existing job, PUT /{org}/projects/{id}/labor-estimate with the same object (not wrapped). That appends a new receipt version and marks it current. The Work Plan flydown updates and is labeled an updated estimate. Scheduled demand is not rewritten. Warning labor_receipt_only. 201 if the job had no receipt yet, 200 if replacing.

Read it back

MethodPath
GET/{org}/projects?limit=100&offset=0
GET/{org}/projects/{id}
PATCH/{org}/projects/{id} (external_id / code / contract_number only)
GET/{org}/projects/by-external/ext:SO-10491
GET/{org}/projects/lookup?apex=5166
GET/{org}/projects/lookup?sales_order=SO-10491
GET/{org}/projects/lookup?name=Acme%20Arena
GET/{org}/projects/lookup?q=5166
GET/{org}/projects/{id}/staffing
GET/{org}/projects/{id}/work-items
GET/{org}/projects/{id}/roster
GET/{org}/teams
GET/{org}/projects/{id}/labor-estimate
PUT/{org}/projects/{id}/labor-estimate
GET/{org}/capacity/monthly
GET/{org}/capacity/monthly/exclude-rest
GET/{org}/capacity/monthly-next
GET/{org}/capacity/monthly/staff
GET/{org}/capacity/monthly/team
GET/{org}/capacity/monthly/unscheduled
GET/{org}/capacity/monthly/projects
GET/{org}/capacity/monthly/team/projects
GET/{org}/projects/{id}/capacity/monthly
GET/{org}/projects/{id}/capacity/monthly/team

Snapshots and GET …/staffing include hours by team name only. GET …/work-items is the same hours at task grain (still no people; the project-root row is omitted; parents with subtasks often show zeros). GET …/roster is the named booking: display name, person_id (Flightplan opaque id), kind, team with the most hours, and allocated YYYY-MM-DD days with hours — no emails, rates, addresses, or Planview ids. Both page with limit (default 100, max 500) and offset. Roster pages people; each person carries their day rows. forward_only defaults true (upcoming unfilled / upcoming roster days). Staffing and work-items never name people. No emails, Planview ids, Slack tokens, or portal tokens leak through any snapshot field. status is the forecast contract: completed means finished; cancelled is out of forecast but not complete. project_complete is true only when status is completed. Do not infer completion from first_use_date.

Do not identify dates by task title. designated is the calendar Apex should read. Pairs that render as bars: eng_cd_start / eng_cd_due (due is the CD task end unless a separate CD-due row is marked), eng_id_start / eng_id_due (IDs task start and end), assembly_start / assembly_due (Assembly task start and end). first_use_date is the marked First Use row, else the project column. Install trips are install_trips[] with n, date (start), end_date (end of the span on site), plus first_install_trip. All of those planning dates are YYYY-MM-DD or null.

GET /{org}/projects pages with limit (default 100, max 500) and offset (0-based). The envelope is items, total (matching rows, not the page length), limit, offset, has_more, and next_offset (null on the last page). Walk with offset=next_offset until has_more is false.

key_dates is extras the operator names on Overview (+ Add date). Always an array (empty when none). Each row is {label, date, contractual}. date is YYYY-MM-DD or null. These are not designated roles — do not fold them into designated.

GET /{org}/projects/lookup resolves one project by apex (spoken Apex / job number), sales_order / contract_number, name, code, external_id, Flightplan id, or q (tries those in order). Unique match returns the snapshot plus matched_by. Several hits return 409 ambiguous with short matches. POST create is still idempotent on exact external_id only.

GET /{org}/teams is the org catalog: active teams as {id, name, code, bound_roles}. No paging. No people, no Planview ids, no capacity hours. Address a team by id — do not match a role string to name. bound_roles is the org labor map.

Monthly demand vs capacity (not staffing)

GET /{org}/capacity/monthly
GET /{org}/capacity/monthly/exclude-rest?rest_exclude_after_days=60
GET /{org}/capacity/monthly-next?rest_exclude_after_days=60
GET /{org}/capacity/monthly/staff
GET /{org}/capacity/monthly/team
GET /{org}/capacity/monthly/unscheduled
GET /{org}/capacity/monthly/team?start_month=2026-08&end_month=2026-12
GET /{org}/capacity/monthly/projects
GET /{org}/capacity/monthly/team/projects
GET /{org}/projects/{id}/capacity/monthly
GET /{org}/projects/{id}/capacity/monthly/team

Org-level monthly demand vs capacity for the Apex leadership tile. This is not sold-order staffing (GET /{org}/projects/{id}/staffing is unchanged). Four groups only: Assembly, Engineering, Foremen, Install Techs. Default window is 3 civil months back and 24 months forward, inclusive. Query params may narrow the window and are clamped to that span. Hours are JSON numbers; months are YYYY-MM. Team names and hours only — no people, emails, or resource ids. Cancelled projects contribute 0 demand. Overhead / internal teams are omitted.

The path segment after /monthly is the Capacity toolbar demand layer. /monthly and /monthly/unscheduled are the same: allocated + staff + team + unscheduled (Flightplan default). /monthly/staff is allocated + named-person staff requests. /monthly/team is allocated + staff + team pool — that is what Planview DvC reported. Payload field demand echoes the layer.

GET /{org}/capacity/monthly/exclude-rest is a sibling of /capacity/monthly (live monthly is unchanged). Same +Unscheduled stack and omit list. Query rest_exclude_after_days (default 60): Install Techs and Foremen keep Trip Rest / Truck Pack for months whose start is on or before today+N, and drop them afterward — matching the Capacity REST view for far months. Response echoes rest_exclude_after_days and rest_exclude_after_date. GET /{org}/capacity/monthly-next is a short-lived identical alias of exclude-rest.

GET /{org}/capacity/monthly/{layer}/projects is the Resources project grid: each row is a job (project_id, external_id, code, project) with demand_hours per month and the same four groups under teams. Same layer paths as the leadership tile. GET /{org}/projects/{id}/capacity/monthly/{layer} is that job alone. Staffing totals are still GET /{org}/projects/{id}/staffing.

Schedule movement (how far project finish dates moved)

GET /{org}/schedule-movement?days=90&client=Example
GET /{org}/schedule-movement?since=2026-07-01&until=2026-09-30&project_manager=Jane%20Doe
GET /{org}/schedule-movement/projects?days=90&min_slip_days=5&direction=pushed&limit=100
GET /{org}/schedule-movement/projects?external_id=ext:SO-10491
GET /{org}/schedule-movement/events?days=90&project_id=123&classes=edit,derived

Unit: business days (Monday to Friday). A project's movement (end_slip_days) is how far its planned finish moved between the start of the window and now; positive is pushed later. A client's net_drift_days adds its projects, each once. timeline.points has one point per week (month past 180 days): pushed_days, pulled_days (negative), net_days, cumulative_net_days. edits are date changes a person made on tasks. excluded counts what was set aside: derived summary-row roll-ups, first_set, cleared, implausible (a date outside five years back to ten forward) and actual. log_started_at is when the change log begins. /events pages with limit (default 500, max 2000) and offset; every row has a class, and only edit rows are something a person did. Segments: client, project_id, external_id, status and project_manager (an exact name, any case) narrow which projects the numbers cover, and everything in the response (totals, timeline, rollups, excluded) is for that segment. since and/or until (YYYY-MM-DD, inclusive) set an explicit date range and replace days; a range that ends in the past is measured against each task's dates as of its end, not today's. /projects also takes min_slip_days and direction (pushed, pulled, unchanged) and returns external_id and status per project. filters in the response says what was applied. The project_manager filter is a cut on your own staff: the name you send is never returned, and no response carries an editor, a project manager or a user id. Scope projects:read.

Webhooks back to the caller

POST /{org}/webhooks
{
  "url": "https://hooks.example.com/flightplan",
  "events": ["project.created", "project.status_changed", "project.staffing_changed"]
}

HTTPS only. HMAC-SHA256 of the raw body in X-Webhook-Signature: sha256=<hex>. Also X-Flightplan-Event and X-Flightplan-Delivery.

Events: project.created, project.updated, project.status_changed, project.deleted, project.staffing_changed. GET /{org}/webhooks/events returns that list.

Machine-readable schema

/api/public/v1/openapi.json

Related surfaces

SurfaceWhoAuth
/api/public/v1External systemsfpk_live_ org key
/fp-mcpClaude / Grokflightplan_ MCP key
/{org}/mcp/v1/toolsREST MCP wrappersame MCP key (documented subset)
/api/v1/apps/flightplanBrowser UIsession / user JWT