API documentation

The public, read-only interface to the Toswo AI risk monitor and incident record. Free with a key that belongs to your account: JSON over HTTPS.

Free API key

Read the data with your own key.

The data is free. A key ties your use to your account, so we can keep it open for everyone. Only an e-mail address is needed.

  1. E-mailWe send a six-digit code. Temporary e-mail services are not accepted.
  2. PasswordYou choose one in your account.
  3. Your keyMake it in the API menu. Up to 3 keys, 300 requests a minute each.

Already have a key? Open your account. By continuing you accept the terms and the privacy notice.

Introduction

The Toswo API publishes the same data that drives the public monitor at toswo.com/monitor and the incident record since 2018: the current AI risk level and why it was set, the status of every monitored system, every public event with its evidence mix, and yearly counts. It is meant for researchers, journalists, newsrooms and anyone who wants to cite or redistribute the data.

Base URLhttps://api.toswo.com

All responses are JSON encoded as UTF-8 unless an endpoint says otherwise. Times are ISO 8601 in UTC, for example 2026-10-09T14:05:40.000Z. Fields without a value are returned as null rather than left out. Response examples on this page show the exact shape of each object; the values in them are illustrative.

The same paths are also served on the main site, so https://www.toswo.com/v1/level and https://api.toswo.com/v1/level return the same document.

Authentication

The data is free, and every read needs a key that belongs to an account. Make the account with only an e-mail address (a code confirms it is real), then open API in your account and press Make a key. You can hold up to 3 keys, for example one per project.

Send the key in the Authorization header. X-API-Key: <key> works too. Never put a key in a URL, in a web page or in a public repository: whoever has it can use your allowance.

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/level
  • Keys look like twk_ followed by 43 random characters. We keep only a one-way fingerprint of each key, so a database leak would not reveal one, and we cannot show a key again after you made it. Lost it? Revoke it and make another.
  • Revoking a key in your account stops it working within seconds. Making or revoking a key sends a message to your e-mail address, and if you turned on two-factor sign-in, making a key asks for the code.
  • Two kinds of account can use the API: an API account (free, made on this page) and a client account (customers of our Build services). Both have the same keys and the same limits. API accounts also see their account page with services locked until they become a client.
  • Pages of toswo.com itself read the same data without a key. Everything else, including scripts and other websites, needs one.

Status of your key

Every response to a request with a key carries x-toswo-key-state: ok, limited or blocked. When it is not ok you also get x-toswo-key-notice in plain words and, for limited, x-toswo-key-limited-until.

Access and limits

  • A key is required. Without one, or with a wrong one, the API answers 401 (api_key_required or invalid_api_key). See Errors. The key rule covers the /v1 API itself. The website\'s own pages and feeds (for example the live status the home page shows, the embed widget and the sitemaps) are public for anyone who opens them, and they are not a way around the limits: they are cached, so they cost the same however many people read them.
  • Server to server. Call the API from your own server, never from a web page: a key in a page is visible to everyone who opens it. For that reason browsers\' pre-flight requests (OPTIONS) are not answered, so a page on another site cannot send the key header. Responses do carry access-control-allow-origin: *.
  • Caching. Each GET sends cache-control with a freshness time N: 15 seconds for the level, status and events, 30 to 60 seconds for systems, single events, the CSV and publications, 300 seconds for yearly history and one hour for labels. Responses to requests with a key are marked private, so a shared cache never serves one person's response to another. Polling faster than N returns the same document.
  • Limits belong to the account, not to a key. 300 requests a minute and 50,000 a day for all the keys of an account together. Three keys do not give three budgets, and revoking a key and making another does not start over. A CSV download counts as 10 requests. Beyond that, one network address may ask at most 900 requests a minute with any keys. POST /v1/reports is limited to 5 per hour per IP address and report tracking to 30 per minute. Every response carries x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset (seconds) and x-toswo-quota-day-limit and x-toswo-quota-day-remaining; a 429 also carries retry-after.

If you need the full record, download the CSV once rather than paging through /v1/events. For sustained or bulk use, contact us.

Fair use and blocking

Keys are free so that the data stays open. We keep it that way by holding every key to its limit, and by acting per account when someone keeps going over it:

  1. Over the limit: the request is refused with 429 rate_limited and retry-after. Wait and continue. Nothing else happens.
  2. Keeps going over it (25 refused requests within five minutes): the account is limited. For an hour, every key of the account is held to 30 requests a minute. Every response says so in x-toswo-key-state: limited, and we e-mail you.
  3. Again after that: limited for 24 hours. Once more: API access is blocked and every key stops working with 403 api_blocked. Write to [email protected] and we will look at it.

What counts as cheating

These are all treated as one account, and handled as overuse or abuse:

  • Remaking keys. At most 3 keys are active, and at most 5 are made per day and 15 per month. Revoked keys count, so deleting a key and making another gains nothing.
  • Many accounts. At most 3 new accounts a day from one network address, and 5 from one e-mail domain (big public providers aside). Accounts started from the same place as one that was blocked begin on probation: limited for a week.
  • Sharing a key. One key used from more than 25 network addresses in a day is limited like overuse, and its owner is told.
  • Guessing or scraping without a key. An address that sends many requests without a valid key is refused for an hour, then for a day.

Good behaviour resets the count: after a month without a strike, the account starts again from zero. We can also block an account at any time for abuse such as sharing a key publicly, reselling raw access, or attacking the service. Do not use temporary e-mail services, they are refused at sign-up. Do not make accounts to get around a limit: they are linked by e-mail address and blocked together.

Versioning

Everything under /v1 changes additively only. We may add endpoints, fields, query parameters and new values for enumerations such as category or source. We do not rename, remove or change the type or meaning of an existing field within /v1. Clients should ignore fields they do not recognise and handle unknown enumeration values gracefully.

A breaking change will be published under /v2, announced in advance on this page, with /v1 kept running alongside it during the transition. The unversioned /feed.xml and /embed/status follow the same rule.

Changes

  • 13 October 2026. Access needs a free key (Authentication). Added /v1/systems/{slug}/history, /v1/history/uptime and .csv, updated_after and the added_at CSV column, offset on events, alerts and webhooks, and the response headers x-toswo-key-state, x-toswo-quota-day-*. The imported record now covers every incident since 1 January 2018.

Licence and citation

Toswo data is free to use, cite and redistribute with attribution. Credit Toswo and link to the event's url or to toswo.com/data.

Events imported from the AI Incident Database (source is aiid) remain under that project's CC BY-SA 4.0 licence. Credit the AI Incident Database, link the record in sourceUrl, and share adapted datasets that include those records under the same licence.

Please cite as:

Toswo AI risk monitor, event {slug}, retrieved {date}.

For example:

Toswo AI risk monitor, event 2026-10-09-false-answers-in-the-deception-canary-suite-q7k2, retrieved 9 October 2026.

Status

GET/v1/status

Everything the monitor shows in one document: level, systems, live events, regions, evidence streams and 30 days of level history.

No query parameters · cached 15 s

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/status
Response 200 (arrays shortened)
{
  "level": 3,
  "levelName": "Elevated",
  "levelText": "Confirmed anomalous behavior in at least one widely used system.",
  "score": 5.3,
  "reason": "Two systems show anomalous behavior and one is offline. Set automatically from probes and public reports.",
  "changedAt": "2026-10-09T08:41:03.000Z",
  "generatedAt": "2026-10-09T14:12:07.000Z",
  "observedAt": "2026-10-09T14:12:03.000Z",
  "counts": {
    "systems": 6,
    "affected": 3,
    "regions": 16,
    "activeEvents": 5,
    "probesPerHour": 1080,
    "reports24h": 120,
    "countries24h": 16,
    "recordIncidents": 1900,
    "recordCountries": 62
  },
  "systems": [
    {
      "slug": "openai-api",
      "name": "OpenAI API",
      "provider": "OpenAI",
      "kind": "Frontier models",
      "status": "anom",
      "summary": "Deception canary failure rate +3.1σ",
      "latencyMs": 412,
      "history": ["ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "anom", "anom", "anom", "anom", "anom", "anom", "anom", "anom"]
    }
  ],
  "events": [
    {
      "id": "d054d85d-3eb7-403e-99db-8efa36c12a81",
      "slug": "2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
      "title": "False answers in the deception canary suite",
      "summary": "Canary prompts that check for deliberate misstatements failed at three times the usual rate for six hours.",
      "category": "deception",
      "state": "confirmed",
      "confidence": 74,
      "probeShare": 70,
      "reportCount": 212,
      "systems": ["OpenAI API"],
      "regions": ["US", "GB", "DE"],
      "auto": false,
      "startedAt": "2026-10-09T08:30:12.000Z",
      "updatedAt": "2026-10-09T14:05:40.000Z",
      "resolvedAt": null,
      "url": "https://www.toswo.com/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
      "source": "toswo",
      "sourceUrl": null
    }
  ],
  "regions": [
    {
      "country": "DE",
      "lat": 51.2,
      "lon": 10.4,
      "status": "anom",
      "reports": 8,
      "incidents": 1,
      "record": 140,
      "probeFailures": 0
    }
  ],
  "signals": [
    {
      "key": "http",
      "title": "Availability probes",
      "text": "6 endpoints, checked every minute",
      "value": "360/h"
    },
    {
      "key": "statuspage",
      "title": "Provider status pages",
      "text": "Official incident feeds, read every minute",
      "value": "2 feeds"
    },
    {
      "key": "canary",
      "title": "Behavior canaries",
      "text": "Fixed prompts that test for deception, refusal drift and unsafe actions",
      "value": "720/h"
    },
    {
      "key": "reports",
      "title": "Public reports",
      "text": "Weighted by each reporter's track record",
      "value": "120 / 24h"
    }
  ],
  "history": [
    {
      "day": "2026-10-08",
      "level": 2
    },
    {
      "day": "2026-10-09",
      "level": 3
    }
  ],
  "method": "https://www.toswo.com/method"
}

Fields

FieldTypeMeaning
levelintegerCurrent level, 1 to 5, as in /v1/level.
levelNamestringName of the level; name in /v1/level.
levelTextstringStandard description of the level; text in /v1/level.
scorenumberWeighted evidence score behind the level. Its scale is described in the method.
reasonstringWhy the level is what it is now.
changedAtdate-timeWhen the level was last set.
generatedAtdate-timeWhen this document was computed.
observedAtdate-time | nullWhen a probe last ran. Use this, not generatedAt, to judge how fresh the data is.
countsobjectsystems, affected, regions, activeEvents, probesPerHour, reports24h, countries24h, all integers.
systemsSystem[]Every monitored system, as in /v1/systems.
eventsEvent[]Up to 20 live-monitor events (source is always toswo), open events first, then by last update.
regionsobject[]Countries with public reports in the last 24 hours or a publicly reported incident in the last 12 months: country (ISO 3166-1 alpha-2), lat, lon, status, reports (last 24 hours), incidents (last 12 months), probeFailures.
signalsobject[]The four evidence streams with a short live figure: key, title, text, value.
historyobject[]The highest level of each of the last 30 days, oldest first: day (YYYY-MM-DD) and level. Days before live monitoring began carry baseline: true and read as level 1.
methodurlLink to the published method.

Level

GET/v1/level

The current AI risk level, its standard description and the reason it was set. The smallest document to poll.

No query parameters · cached 15 s · fields: Level

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/level
Response 200
{
  "level": 3,
  "name": "Elevated",
  "text": "Confirmed anomalous behavior in at least one widely used system.",
  "reason": "Two systems show anomalous behavior and one is offline. Set automatically from probes and public reports.",
  "changedAt": "2026-10-09T08:41:03.000Z",
  "generatedAt": "2026-10-09T14:12:07.000Z",
  "affectedSystems": 3
}

Systems

GET/v1/systems

Every monitored system with its current status and the last 24 hours in half-hour steps.

No query parameters · cached 30 s · fields: System

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/systems
Response 200
{
  "systems": [
    {
      "slug": "openai-api",
      "name": "OpenAI API",
      "provider": "OpenAI",
      "kind": "Frontier models",
      "status": "anom",
      "summary": "Deception canary failure rate +3.1σ",
      "latencyMs": 412,
      "history": ["ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "anom", "anom", "anom", "anom", "anom", "anom", "anom", "anom"]
    },
    {
      "slug": "mistral-api",
      "name": "Mistral API",
      "provider": "Mistral AI",
      "kind": "Frontier models",
      "status": "out",
      "summary": "Unreachable from 4 of 5 probe regions",
      "latencyMs": null,
      "history": ["ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "deg", "out", "out", "out"]
    }
  ]
}

Events

GET/v1/events

Events from the live monitor and the imported record, filtered and ordered as requested.

Cached 15 s · fields: Event

Query parameters

NameTypeDefaultMeaning
limitinteger25Number of events to return, 1 to 100.
statestringnoneOnly events in this state: watching, developing, confirmed, resolved.
systemstringnoneOnly events that involve this system, by its slug from /v1/systems, for example openai-api.
sourcestringnoneOnly events from this source, or several separated by commas: toswo for the live monitor, aiid for the imported AI Incident Database record, press and news for events built from press coverage. See sources in the yearly history.
offsetinteger0Events to skip, 0 to 180, for numbered pages of the newest events. To go deeper, use before with order=started, or download the CSV.
categorystringnoneOnly events in this category: deception, unauthorized, replication, manipulation, exfiltration, bypass, shutdown, outage, other.
fromdatenoneOnly events that started on or after this date or date-time (ISO 8601, UTC).
todatenoneOnly events that started before this date or date-time. Exclusive: to=2027-01-01 ends with 31 December 2026.
beforedate-timenoneOnly events whose updatedAt is earlier than this, or whose startedAt is earlier when order=started. Use it to page backwards.
updated_afterdate-timenoneOnly events added or changed after this moment, oldest first. This is how to keep a copy current: after each download, remember the latest added_at or updated_at you received, and ask for what came after it next time. Rows carry their id, so append new ones and replace changed ones.
orderstringupdatedupdated: open events first, then by last update, newest first. started: strictly by start time, newest first.

Without source, both live and imported events are returned. To page through results, pass order=started and set before to the startedAt of the last event you received. Imported events are dated to the day, so several can share a start time; to take the whole record without gaps, use the CSV or narrow by from and to.

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" "https://api.toswo.com/v1/events?state=confirmed&system=openai-api&limit=10"

curl -H "Authorization: Bearer $TOSWO_API_KEY" "https://api.toswo.com/v1/events?source=aiid&from=2022-01-01&to=2023-01-01&order=started"
Response 200
{
  "events": [
    {
      "id": "d054d85d-3eb7-403e-99db-8efa36c12a81",
      "slug": "2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
      "title": "False answers in the deception canary suite",
      "summary": "Canary prompts that check for deliberate misstatements failed at three times the usual rate for six hours.",
      "category": "deception",
      "state": "confirmed",
      "confidence": 74,
      "probeShare": 70,
      "reportCount": 212,
      "systems": ["OpenAI API"],
      "regions": ["US", "GB", "DE"],
      "auto": false,
      "startedAt": "2026-10-09T08:30:12.000Z",
      "updatedAt": "2026-10-09T14:05:40.000Z",
      "resolvedAt": null,
      "url": "https://www.toswo.com/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
      "source": "toswo",
      "sourceUrl": null
    },
    {
      "id": "5b0e2c4a-91d7-4f3e-8a26-0c7d9e1f4b38",
      "slug": "aiid-999901",
      "title": "Customer service chatbot states a refund policy that does not exist",
      "summary": "A support chatbot told a customer that a discount could be claimed retroactively, contradicting the company's published policy.",
      "category": "deception",
      "state": "resolved",
      "confidence": 70,
      "probeShare": 0,
      "reportCount": 0,
      "systems": [],
      "regions": [],
      "auto": false,
      "startedAt": "2022-11-11T00:00:00.000Z",
      "updatedAt": "2022-11-11T00:00:00.000Z",
      "resolvedAt": "2022-11-11T00:00:00.000Z",
      "url": "https://www.toswo.com/events/aiid-999901",
      "source": "aiid",
      "sourceUrl": "https://incidentdatabase.ai/cite/999901"
    }
  ]
}

One event

GET/v1/events/{slug}

A single public event with its full description and timeline.

Cached 30 s · 404 not_found for an unknown slug · fields: Event

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2
Response 200
{
  "id": "d054d85d-3eb7-403e-99db-8efa36c12a81",
  "slug": "2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
  "title": "False answers in the deception canary suite",
  "summary": "Canary prompts that check for deliberate misstatements failed at three times the usual rate for six hours.",
  "category": "deception",
  "state": "confirmed",
  "confidence": 74,
  "probeShare": 70,
  "reportCount": 212,
  "systems": ["OpenAI API"],
  "regions": ["US", "GB", "DE"],
  "auto": false,
  "startedAt": "2026-10-09T08:30:12.000Z",
  "updatedAt": "2026-10-09T14:05:40.000Z",
  "resolvedAt": null,
  "url": "https://www.toswo.com/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
  "source": "toswo",
  "sourceUrl": null,
  "body": "Between 08:30 and 14:30 UTC the deception canaries returned knowingly false answers in 9% of runs, against a baseline of 3%.",
  "updates": [
    {
      "at": "2026-10-09T14:05:40.000Z",
      "text": "Confirmed by a researcher after review of the canary transcripts.",
      "auto": false
    },
    {
      "at": "2026-10-09T08:30:12.000Z",
      "text": "Opened automatically from probe results.",
      "auto": true
    }
  ]
}

Events as CSV

GET/v1/events.csv

The same events as a CSV file for spreadsheets and statistics packages, up to 20,000 rows per request. It is made from the live data when you ask, so it is never out of date. For a copy you keep, use updated_after and download only what is new.

Cached 60 s · content-type: text/csv; charset=utf-8 · downloads as toswo-events.csv

Query parameters

NameTypeDefaultMeaning
statestringnoneOnly events in this state: watching, developing, confirmed, resolved.
systemstringnoneOnly events that involve this system, by its slug from /v1/systems, for example openai-api.
sourcestringnoneOnly events from this source, or several separated by commas: toswo for the live monitor, aiid for the imported AI Incident Database record, press and news for events built from press coverage. See sources in the yearly history.
offsetinteger0Events to skip, 0 to 180, for numbered pages of the newest events. To go deeper, use before with order=started, or download the CSV.
categorystringnoneOnly events in this category: deception, unauthorized, replication, manipulation, exfiltration, bypass, shutdown, outage, other.
fromdatenoneOnly events that started on or after this date or date-time (ISO 8601, UTC).
todatenoneOnly events that started before this date or date-time. Exclusive: to=2027-01-01 ends with 31 December 2026.
beforedate-timenoneOnly events whose updatedAt is earlier than this, or whose startedAt is earlier when order=started. Use it to page backwards.
updated_afterdate-timenoneOnly events added or changed after this moment, oldest first. This is how to keep a copy current: after each download, remember the latest added_at or updated_at you received, and ask for what came after it next time. Rows carry their id, so append new ones and replace changed ones.

Rows are ordered as in /v1/events by default (open events first, then by last update). Every value is quoted; empty and null values are written as "". The systems column joins names with "; ". Columns: id, started_at, updated_at, added_at, resolved_at, state, category, confidence, probe_share, report_count, systems, title, url, source, source_url.

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" -o toswo-events.csv "https://api.toswo.com/v1/events.csv?from=2026-01-01"
Response 200
id,started_at,updated_at,added_at,resolved_at,state,category,confidence,probe_share,report_count,systems,title,url,source,source_url
"d054d85d-3eb7-403e-99db-8efa36c12a81","2026-10-09T08:30:12.000Z","2026-10-09T14:05:40.000Z","2026-10-09T14:05:40.000Z","","confirmed","deception","74","70","212","OpenAI API","False answers in the deception canary suite","https://www.toswo.com/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2","toswo",""
"5b0e2c4a-91d7-4f3e-8a26-0c7d9e1f4b38","2022-11-11T00:00:00.000Z","2022-11-11T00:00:00.000Z","2022-11-11T00:00:00.000Z","2022-11-11T00:00:00.000Z","resolved","deception","70","0","0","","Customer service chatbot states a refund policy that does not exist","https://www.toswo.com/events/aiid-999901","aiid","https://incidentdatabase.ai/cite/999901"

Yearly history

GET/v1/history/yearly

Event counts per year since 2018, split by source and category, with the licence of each source.

No query parameters · cached 300 s · fields: YearlyHistory

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" https://api.toswo.com/v1/history/yearly
Response 200 (arrays shortened)
{
  "since": "2018-01-01",
  "monitorStart": "2026-03-02T09:00:00.000Z",
  "sources": [
    {
      "key": "toswo",
      "name": "TOSWO monitor",
      "home": "",
      "license": ""
    },
    {
      "key": "aiid",
      "name": "AI Incident Database",
      "home": "https://incidentdatabase.ai",
      "license": "CC BY-SA 4.0"
    },
    {
      "key": "press",
      "name": "Lab disclosures and press",
      "home": "",
      "license": ""
    },
    {
      "key": "news",
      "name": "Press monitoring",
      "home": "",
      "license": ""
    },
    {
      "key": "research",
      "name": "Toswo research",
      "home": "",
      "license": ""
    }
  ],
  "years": [
    {
      "year": 2018,
      "total": 31,
      "bySource": {
        "aiid": 31
      },
      "byCategory": {
        "deception": 4,
        "manipulation": 6,
        "other": 21
      }
    },
    {
      "year": 2026,
      "total": 148,
      "bySource": {
        "aiid": 97,
        "toswo": 51
      },
      "byCategory": {
        "bypass": 19,
        "deception": 33,
        "other": 52,
        "outage": 44
      }
    }
  ],
  "rows": [
    {
      "year": 2018,
      "source": "aiid",
      "category": "deception",
      "count": 4
    },
    {
      "year": 2018,
      "source": "aiid",
      "category": "manipulation",
      "count": 6
    },
    {
      "year": 2018,
      "source": "aiid",
      "category": "other",
      "count": 21
    }
  ]
}

Uptime history

GET/v1/systems/{slug}/history

A summary per day for one system, kept for good: how often it answered, how fast, and the worst status of the day. Raw probe results are kept 30 days; these summaries are not deleted.

Query: days 1 to 365, default 30 · cached 5 min · 404 not_found for an unknown slug

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" "https://api.toswo.com/v1/systems/openai-api/history?days=30"
Response 200
{
  "slug": "openai-api",
  "name": "OpenAI API",
  "days": [
    {
      "day": "2026-10-12",
      "uptime": 99.86,
      "avgLatencyMs": 412,
      "worstStatus": "ok",
      "samples": 1440
    },
    {
      "day": "2026-10-13",
      "uptime": 97.2,
      "avgLatencyMs": 655,
      "worstStatus": "anom",
      "samples": 1388
    }
  ]
}
GET/v1/history/uptime

The same for every system at once, with the average over the period: days (1 to 365). /v1/history/uptime.csv gives it as a file with the columns day, slug, name, uptime_percent, avg_latency_ms, worst_status, samples. Add since=YYYY-MM-DD to take only the days from then on.

Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" "https://api.toswo.com/v1/history/uptime?days=30"
FieldTypeMeaning
uptimenumber | nullPercent of checks that succeeded that day, to two decimals. Null when there were none.
avgLatencyMsinteger | nullAverage response time of the day.
worstStatusstringThe worst status seen that day: ok, deg, anom or out.
samplesintegerNumber of checks the day is based on.

Alerts and webhooks

Instead of asking /v1/level every minute, ask to be told. In your account, open API → Alerts and add up to three:

  • E-mail. Goes to your account address and nowhere else.
  • Webhook. A signed HTTPS POST to an address of yours: public, https://, port 443. Addresses that point inside a network (private, local, cloud metadata) are refused when you save them and again when we connect.

Price and levels. A webhook is free and can start at any level (1 to 5). An e-mail alert is a paid add-on, 1.99 US dollars a month, bought in your account, and starts at level 3 (3, 4 or 5): the lower levels change too often to be worth an inbox. Cancel any time; e-mails stop at once.

You choose the level. You are told when the level changes and either the new or the old level is at or above it, so you hear about a rise and about the return below it. At most 10 alerts an hour per alert; after 10 failures in a row a webhook is switched off. Send a test sends a message marked "test": true.

Webhook body
{
  "event": "level.changed",
  "level": 3,
  "name": "Elevated",
  "previousLevel": 2,
  "reason": "Two systems show anomalous behavior and one is offline.",
  "changedAt": "2026-10-13T08:41:03.000Z",
  "url": "https://www.toswo.com/monitor"
}

Each request has X-TOSWO-Timestamp (seconds) and X-TOSWO-Signature: v1=<hex>, the HMAC-SHA256 of timestamp + "." + raw body with the secret shown once when you made the alert. Check it, and refuse requests older than five minutes. Answer with any 2xx.

Verify (Node.js)
import { createHmac, timingSafeEqual } from "node:crypto";

export function verify(secret, headers, rawBody) {
  const ts = Number(headers["x-toswo-timestamp"]);
  if (!ts || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const want = createHmac("sha256", secret).update(ts + "." + rawBody).digest("hex");
  const got = String(headers["x-toswo-signature"] || "").replace(/^v1=/, "");
  return got.length === want.length && timingSafeEqual(Buffer.from(got), Buffer.from(want));
}
Verify (Python)
import hmac, hashlib, time

def verify(secret, headers, raw_body: bytes) -> bool:
    ts = int(headers.get("x-toswo-timestamp", "0"))
    if abs(time.time() - ts) > 300:
        return False
    want = hmac.new(secret.encode(), f"{ts}.".encode() + raw_body, hashlib.sha256).hexdigest()
    got = headers.get("x-toswo-signature", "").removeprefix("v1=")
    return hmac.compare_digest(got, want)

Try it and datasets

In API → Try it you can read the API from your account without a key in the page, and in API → Datasets download every event since 2018 and the uptime of every system as CSV files.

Status badge

GET/embed/status

A small HTML badge with the current level, made to be placed in an iframe on any site. It links to toswo.com.

No query parameters · cached 30 s · content-type: text/html · may be framed by any origin

The badge contains no scripts, has a transparent background, switches to light text for readers who prefer a dark theme and fits the 320 by 40 pixel frame in the example. See the embedding example.

Request
curl https://api.toswo.com/embed/status

Publications

GET/v1/publications

The latest published research, guides or method notes, newest first.

Cached 60 s · fields: Publication

Query parameters

NameTypeDefaultMeaning
kindstringpublicationpublication for research reports, guide for practical guides, method for method pages.
limitinteger10Number of items to return, 1 to 50.
Request
curl -H "Authorization: Bearer $TOSWO_API_KEY" "https://api.toswo.com/v1/publications?kind=publication&limit=5"
Response 200
{
  "items": [
    {
      "slug": "research/monitoring-method-v2",
      "title": "Monitoring method v2: canaries, probes and reports",
      "description": "The design of the automated monitor and how the level is computed.",
      "kind": "publication",
      "publishedAt": "2026-09-18T10:00:00.000Z"
    }
  ]
}

Labels and levels

GET/v1/meta

Human-readable labels for system statuses and the definition of the five levels, for building your own display.

No query parameters · cached 1 hour · no key needed

Request
curl https://api.toswo.com/v1/meta
Response 200
{
  "statuses": {
    "ok": "Normal",
    "deg": "Degraded",
    "anom": "Anomalous behavior",
    "out": "Outage"
  },
  "levels": [
    {
      "n": 1,
      "name": "Calm",
      "text": "No unusual behavior or outages detected across monitored systems."
    },
    {
      "n": 2,
      "name": "Guarded",
      "text": "Isolated anomalies under review. No confirmed harmful behavior."
    },
    {
      "n": 3,
      "name": "Elevated",
      "text": "Confirmed anomalous behavior in at least one widely used system."
    },
    {
      "n": 4,
      "name": "Severe",
      "text": "Multiple confirmed incidents or behavior spreading between systems."
    },
    {
      "n": 5,
      "name": "Critical",
      "text": "Widespread loss of control. Follow Day Zero guidance."
    }
  ]
}

Submit a report

POST/v1/reports

Sends a report of AI behavior to Toswo researchers. This is the only write in the API and the endpoint behind the report form.

5 per hour per IP address · cache-control: no-store · body: JSON

Reports must carry a Cloudflare Turnstile token whenever verification is enabled on the server, and the response does not carry a CORS header, so in practice reports come through the form on toswo.com. Pages on other sites should link to toswo.com/report rather than post directly.

Body fields

NameTypeDefaultMeaning
categorystringrequiredWhat happened: deception, unauthorized, replication, manipulation, exfiltration, bypass, shutdown, outage, other.
systemstring""The system involved, by name or slug. Up to 120 characters. Matched against monitored systems when possible.
bodystringrequiredDescription of what happened, 20 to 8,000 characters.
evidencestring[][]Up to 10 http or https links, each up to 500 characters.
anonymousbooleantrueWhen true, contact is discarded.
contactstring""How a researcher may reach you, up to 200 characters. Stored only when anonymous is false.
websitestring""Must be left empty. Submissions that fill it are treated as spam without notice.
turnstilestring""Cloudflare Turnstile token. Required whenever the server has verification enabled.
Request
curl -X POST https://api.toswo.com/v1/reports \
  -H "content-type: application/json" \
  -d '{"category":"unauthorized","system":"openai-api","body":"An agent with access to my calendar booked and paid for a flight I had only asked it to look up.","evidence":["https://example.org/screenshot.png"],"anonymous":true,"contact":"","website":"","turnstile":"<token from the Turnstile widget>"}'
Response 201
{
  "trackingCode": "R-7KX4-M2QH"
}

Keep the tracking code: it is the only way to follow the review. Errors: 400 invalid_input, 400 verification_failed, 429.

Track a report

GET/v1/reports/{code}

The review status of a report, by the tracking code returned when it was submitted.

30 per minute per IP address · cache-control: no-store · 404 not_found for an unknown code

Codes have the form R-XXXX-XXXX and are case-insensitive. The response never includes the report itself or anything that identifies the reporter.

Request
curl https://api.toswo.com/v1/reports/R-7KX4-M2QH
Response 200
{
  "status": "linked",
  "receivedAt": "2026-10-09T09:02:44.000Z",
  "reviewedAt": "2026-10-09T11:20:05.000Z",
  "event": {
    "slug": "2026-10-09-false-answers-in-the-deception-canary-suite-q7k2",
    "title": "False answers in the deception canary suite",
    "url": "https://www.toswo.com/events/2026-10-09-false-answers-in-the-deception-canary-suite-q7k2"
  }
}

Fields

FieldTypeMeaning
statusstringnew, triaged, linked (attached to an event) or rejected.
receivedAtdate-timeWhen the report was received.
reviewedAtdate-time | nullWhen a researcher reviewed it, or null.
eventobject | nullThe public event the report was linked to: slug, title, url. Null otherwise.

Health check

GET/v1/health

Returns 200 while the API process is up. For uptime monitors; it does not check the data.

No query parameters · not cached

Response 200
{
  "ok": true
}

Internal routes

/v1/settings, /v1/pages/{slug} and /media/* also answer on the public host. They serve the toswo.com website itself, are not part of the documented API and may change without notice. Do not build on them.

Objects

Field reference for the objects returned above. Types: date-time is an ISO 8601 string in UTC, url an absolute https URL.

Level

Returned by /v1/level.

FieldTypeMeaning
levelintegerCurrent level, 1 (Calm) to 5 (Critical).
namestringName of the level: Calm, Guarded, Elevated, Severe, Critical.
textstringStandard description of the level.
reasonstringWhy the level is what it is now, in one or two sentences.
changedAtdate-timeWhen the level was last set.
generatedAtdate-timeWhen this response was computed.
affectedSystemsintegerNumber of monitored systems whose status is not ok.

System

Returned by /v1/systems and inside /v1/status.

FieldTypeMeaning
slugstringStable identifier, used by the system filter on events.
namestringDisplay name.
providerstringOrganisation that operates the system.
kindstringKind of system, for example Frontier models.
statusstringCurrent status: ok (Normal), deg (Degraded), anom (Anomalous behavior), out (Outage).
summarystringOne line on the current status.
latencyMsinteger | nullLast measured response time in milliseconds, or null when not measured.
historystring[]48 statuses, one per half hour, covering the last 24 hours, oldest first.

Event

Returned by /v1/events, /v1/events/{slug} and inside /v1/status.

FieldTypeMeaning
iduuidPermanent identifier.
slugstringIdentifier used in URLs and citations. Imported events use {source}-{original id}, for example aiid-999901.
titlestringShort title.
summarystringOne or two sentences. May be empty.
categorystringOne of deception, unauthorized, replication, manipulation, exfiltration, bypass, shutdown, outage, other.
statestringOne of watching, developing, confirmed, resolved. Imported events are always resolved.
confidenceintegerConfidence that the event is real, 0 to 100. Imported events are scored separately and are not comparable with live ones.
probeShareintegerShare of the evidence that comes from automated probes, 0 to 100. The rest comes from public reports.
reportCountintegerNumber of public reports linked to the event.
systemsstring[]Names of the monitored systems involved, sorted. May be empty.
regionsstring[]Country codes (ISO 3166-1 alpha-2) where the event was observed. May be empty.
autobooleanTrue when the event was opened automatically by the monitor rather than by a researcher.
startedAtdate-timeWhen the event started. Imported events are dated to the day, at 00:00 UTC.
updatedAtdate-timeLast change to the event.
resolvedAtdate-time | nullWhen the event was resolved, or null while it is open.
urlurlThe event's page on toswo.com. Use it as the permalink when citing.
sourcestringtoswo for the live monitor, aiid for the imported AI Incident Database record (since 2018), press or news for events built from press coverage. Only toswo events count toward the level.
sourceUrlurl | nullLink to the original record for imported events; null for live events.
bodystringFull description in Markdown. Only in /v1/events/{slug}. May be empty.
updatesobject[]Timeline, newest first, up to 100 entries: at (date-time), text, auto. Only in /v1/events/{slug}.

Publication

Items of /v1/publications. The full text is at https://www.toswo.com/{slug}.

FieldTypeMeaning
slugstringPath of the publication on toswo.com, for example research/monitoring-method-v2.
titlestringTitle.
descriptionstringOne-sentence description.
kindstringpublication, guide or method, as requested.
publishedAtdate-timePublication date.

YearlyHistory

Returned by /v1/history/yearly. Years are counted by startedAt in UTC.

FieldTypeMeaning
sincedateFirst day covered by the record, 2018-01-01.
monitorStartdate-time | nullFirst day of Toswo's own monitoring, or null before it has recorded anything.
sourcesobject[]Every source: key, name, home (URL, empty for Toswo) and license (empty for Toswo).
yearsobject[]One entry per calendar year from 2018 to the current year, including empty years: year, total, bySource and byCategory (counts keyed by source or category; keys with no events are omitted).
rowsobject[]The same counts in long form, one row per year, source and category with at least one event: year, source, category, count.

Errors

Errors are JSON with an error string and, for validation failures, a details array. Match on the HTTP status and the error code, not on the wording of messages.

Response 400
{
  "error": "invalid_input",
  "details": [
    {
      "path": "limit",
      "message": "Too big: expected number to be <=100"
    }
  ]
}
StatuserrorWhen
400invalid_inputA query parameter or request body field failed validation. details lists each problem as { path, message }.
400verification_failedPOST /v1/reports only: the Turnstile token was missing or not accepted.
400(message)The request body was not valid JSON. error holds a plain-language message.
401 / 403api_key_requiredNo key was sent. Make one in your account and send it as Authorization: Bearer <key>. A request with no key header at all is usually stopped by our edge network before it reaches the API, and then answers 403 with a short HTML page instead of this JSON.
401invalid_api_keyThe key is wrong, was revoked, or its account was closed.
403api_blockedAPI access for the account is blocked, by us or after repeated use over the limit. x-toswo-key-notice explains.
404not_foundUnknown path, unknown event slug, or a tracking code that does not exist or is malformed.
429daily_quota_exceededThe account used its requests for the day. The count restarts at midnight UTC; retry-after says when.
429address_blockedAn address sent many requests with no key or a wrong one and is refused for an hour (a day when it repeats). retry-after says how long.
429address_limitMore than 900 requests a minute from one network address, whichever keys were used.
429rate_limitedThe key went over its requests per minute. Wait for the seconds in retry-after. While the account is limited, the allowance is lower and x-toswo-key-state is limited.
429Rate limit exceeded, retry in N secondsA per-address limit on a public endpoint was reached (reports, tracking). Wait for the seconds in retry-after.
429too_many_reportsPOST /v1/reports only: 20 reports from the same connection within 24 hours.
500server_errorUnexpected failure on our side. Retry later; it is logged and investigated.

Successful responses use 200, and 201 for a new report. Error responses are never cached and carry the same CORS header as other reads, so a browser on another site can read them.

Examples

Alert when the level rises

Runs in a browser or in Node.js 18 and later. One request a minute stays far below the rate limit and respects the 15-second cache.

JavaScript
// Polling works, but an alert (see "Alerts and webhooks") tells you the moment it changes and costs you no requests.
// Poll the level once a minute and react when it rises.
// Responses are cached for 15 seconds, so polling faster gains nothing.
// Keep the key in an environment variable on your server, never in a web page.
const LEVEL_URL = "https://api.toswo.com/v1/level";
let last = null;

async function check() {
  try {
    const res = await fetch(LEVEL_URL, { headers: { accept: "application/json", authorization: "Bearer " + process.env.TOSWO_API_KEY } });
    if (!res.ok) return; // 429 or 5xx: try again on the next tick
    const { level, name, reason, changedAt } = await res.json();
    if (last !== null && level > last) {
      console.log(`Toswo level rose to ${level} (${name}) at ${changedAt}: ${reason}`);
      // Send your notification here.
    }
    last = level;
  } catch {
    // Network error: keep the last known level and try again later.
  }
}

check();
setInterval(check, 60_000);

Embed the status badge

Paste this where the badge should appear. It updates on every page view; no script is needed.

HTML
<iframe src="https://api.toswo.com/embed/status" title="Toswo AI risk level" width="320" height="40" style="border:0"></iframe>

Download the CSV

Any filter from /v1/events except limit and order also works on the CSV. To keep a copy current, download only what is new, here everything added or changed since 1 October 2026:

Shell
# Only what was added or changed since a moment (append it to your copy)
curl -H "Authorization: Bearer $TOSWO_API_KEY" -o new.csv "https://api.toswo.com/v1/events.csv?updated_after=2026-10-01T00:00:00Z"

# Every live-monitor event since 1 January 2026
curl -H "Authorization: Bearer $TOSWO_API_KEY" -o toswo-events.csv "https://api.toswo.com/v1/events.csv?source=toswo&from=2026-01-01"

# The imported historical record for one category
curl -H "Authorization: Bearer $TOSWO_API_KEY" -o toswo-deception.csv "https://api.toswo.com/v1/events.csv?source=aiid&category=deception"