API & MCP

Everything in the app, from your own code

The Floodscape app uses the same API you do. Create projects, fetch data, run storms and download results from scripts, your own systems or AI agents.

Organization access tokens

An organization access token lets a script or system act for your organization, not for a person. An administrator creates it in the account settings and can revoke it there.

  • Sent as Authorization: Bearer <token>
  • Runs started with a token use your organization's compute-minutes and spending cap
  • Keep tokens on the server side. Never put one in a web page or a public repository.

Included on every plan. Custom integrations with your own systems are part of the Organization plan.

How the API is built

  • JSON over HTTPS
  • A project changes only through named commands: each is one log entry and one undo step
  • Long tasks (data download, simulation) return a job you can poll
  • Units: metres, seconds, m³; rain in mm and mm/h
  • Coordinates in the project's coordinate system (in Norway by default EUREF89 UTM33)

Example: list projects, start a run, fetch results

Replace $FLOODSCAPE_TOKEN with your organization token. The project and run names are examples.

export FLOODSCAPE_TOKEN="fsk_live_xxxxxxxxxxxxxxxx"   # placeholder
API=https://api.floodscape.no/api

# List your organization's projects
curl -s "$API/projects" \
  -H "Authorization: Bearer $FLOODSCAPE_TOKEN"

# Start a run on a project; returns a job id
curl -s -X POST "$API/projects/storgata/runs" \
  -H "Authorization: Bearer $FLOODSCAPE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"scenario_id": "100yr-90min"}'

# Poll the job until it is done
curl -s "$API/jobs/JOB_ID" \
  -H "Authorization: Bearer $FLOODSCAPE_TOKEN"

# Download per-area results as CSV
curl -s -o zones.csv "$API/projects/storgata/runs/RUN_ID/export/zones.csv" \
  -H "Authorization: Bearer $FLOODSCAPE_TOKEN"

The full API reference is available to customers. Ask us if you want to see it before you buy.

MCP for AI agents

Floodscape speaks the Model Context Protocol (MCP). Connect an MCP-capable AI assistant and it can set up projects, run storms and read results on your behalf, with the same token and the same limits as any other integration.

Tools include list_projects, create_project, execute_command, check_model, run_simulation, get_results and probe_point.

The agent sends the same named commands as the app. Every change lands in the project's activity log and can be undone.

Example client configuration

{
  "mcpServers": {
    "floodscape": {
      "url": "https://api.floodscape.no/mcp",
      "headers": {
        "Authorization": "Bearer fsk_live_xxxxxxxxxxxxxxxx"
      }
    }
  }
}

Placeholder token. The exact configuration format depends on your MCP client.

Try it on a site you know

30-day trial with 60 compute-minutes: enough for about 20 typical site runs. Sign in with your Microsoft or Google account, or by email.

Start free trial Talk to us