For developers
If you track AI incidents, studies, claims or what politicians have said about AI, you can send them to us from your own tools, and a person checks each one against its source. Evidence goes to the review queue and appears on the site once it is checked. A quote waits, held, for you to look over and release first, unless you send it straight to review; in review it can be read on the politician’s page, marked unverified, until it is checked.
How review works
- A key belongs to a person. Everything it sends is recorded under your name.
- Everything arrives as submitted. A key cannot edit anything.
- Reviewers can decide submitted quotes from their own tools, if we have given them that permission and their key carries
review:quotes. Nobody can decide a quote they sent themselves, through a key or on the site. - A reviewer approves or declines each item. You can ask what happened to what you sent, including the reviewer’s note when something is declined.
- Sending the same catalogue entry twice files it twice. Check what you have already sent before you retry (see
/api/v1/evidence/statusbelow).
Get a key
Tell us what you will use it for and we will get back to you. Once we approve it, you collect the key here, signed in, within 14 days. It is shown once: we keep only a fingerprint of it, so a lost key is replaced rather than recovered.
A key can send evidence and read back what it sent. It allows 200 items a day and lasts 90 days. If you need more, or want to send quotes, say so in your request.
Endpoints
Send your key as a bearer token on every request. Any problem with the key, whether it is unknown, revoked or expired, gets the same 401.
Authorization: Bearer afais_live_…GET /api/v1/whoami
Make this your first call. It confirms whose name your submissions will carry, your limits and how many you have used today, and lists the risks and catalogue names we accept. Each risk in risks comes with its name and description, quoted from the taxonomy with its licence, so you can tag by what a risk means rather than guess from its slug. quoteFeatures lists the optional quote fields this deployment accepts, then what it reports back: withdrawal means a quote you withdraw is kept, with your reason, whether it was held, released or sent unverified. Read it as a list of capabilities, not of fields to send: only concern and visibility go on an item. quoteRecord counts how reviewers have decided this key’s quotes, as checkedFirst (held, then released by you) and sentUnchecked, each with published and declined, so you can tell when to change visibility. checkedFirst also has released, every quote you released and have not withdrawn, whether decided yet or not. Both have withdrawn, the quotes you withdrew before a reviewer decided them, and withdrawnByReason, the same split by reason: a held or released quote you withdrew counts in checkedFirst, one sent unverified in sentUnchecked, which also has sent, every quote sent that way, waiting, decided or withdrawn. A quote sent with a concern counts as checked first, since it is always held.
curl https://www.australiansforaisafety.com.au/api/v1/whoami \
-H "Authorization: Bearer $AFAIS_API_KEY"POST /api/v1/evidence
Send up to 25 items at a time. Each item gets its own result, so one bad item does not fail the rest. A claim is 15 to 500 characters. Tag it with every risk it is evidence for, as riskSlugs (at least one, each one that whoami lists, each once); a single riskSlug still works. Send one of the two fields, not both.
curl https://www.australiansforaisafety.com.au/api/v1/evidence \
-H "Authorization: Bearer $AFAIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [{
"kind": "claim",
"claim": "A chatbot gave a customer a refund policy that did not exist.",
"occurredOn": "2024-02-14",
"sourceName": "Example News",
"sourceUrl": "https://example.com/story",
"riskSlugs": ["<a slug from whoami>"],
"references": [{ "source": "aiid", "externalId": "639" }]
}]
}'A result with created: true carries the new item’s id. A non-empty collidesWith means something already on file cites the same catalogue entry: the item is still filed, and a reviewer decides.
Testing: ?dry_run=true
Add ?dry_run=true to the same request to check a batch without sending it. We run every check the real request would, then throw the result away: nothing reaches the queue and nothing counts towards your daily limit. Each result says wouldCreate: true and shows the item as it would be stored. The only values accepted are true and false; anything else is refused, so a typo cannot turn a test into a real submission. Dry runs still count towards your per-minute limit.
curl "https://www.australiansforaisafety.com.au/api/v1/evidence?dry_run=true" \
-H "Authorization: Bearer $AFAIS_API_KEY" \
-H "Content-Type: application/json" \
-d @batch.jsonPOST /api/v1/evidence/status
Ask what happened to items you sent, by catalogue reference: up to 100 at a time. It only answers about items your key sent.
curl https://www.australiansforaisafety.com.au/api/v1/evidence/status \
-H "Authorization: Bearer $AFAIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "refs": [{ "source": "aiid", "externalId": "639" }] }'POST /api/v1/quotes
Send up to 25 things politicians have said, with the submit:quotes scope. Name the politician and the risk by the slugs in our own addresses: /politicians/kate-chaney is kate-chaney. If you are reading Hansard, name them instead by politicianAphId, the Parliamentary Handbook id Hansard links every speaker to (264121 in handbook/allmps/264121): send one or the other, not both. Not every politician is linked to their id yet, former members especially; if one comes back unknown, send their slug instead. Quote the words exactly as the source has them, and link the primary source (Hansard or a transcript) rather than a report of it. ?dry_run=true works here too. An item that fails validation (a missing field, a date that does not exist) refuses the whole batch with 400 before anything is sent. Past that, each result carries the index of its item, so you can tell which landed if a batch stops part way. An unknown slug comes back with didYouMean suggestions. Tag a quote with every risk it speaks to, as riskSlugs, or with none, as "riskSlugs": [], when it is worth having but not about any one risk: it still appears on the politician’s page, and a reviewer can tag it later. Send riskSlugs or riskSlug, not both. An unknown risk comes back with validSlugs.
If your program has a doubt it cannot settle, send the quote anyway with a concern: up to 1000 characters, in plain words, saying what the reviewer should check (“may be citing someone else’s research”). The reviewer sees it above the quote; it is never published. Check that whoami lists concern in quoteFeatures before sending one: a field we do not know refuses the whole batch. A quote sent with a concern always arrives held. When you release it you choose: with the concern, it stays off the politician’s page until a reviewer has published it; without it, the concern is deleted and the quote shows on the politician’s page marked unverified, like any other. A declined quote’s concern is erased with its words after 30 days.
Every quote arrives held unless you say otherwise: only you can see it, on Your contributions, where you can edit it (its words, source, date and, while it is held, the risks it is filed under), release it to the review queue, or withdraw it with a reason. Once your tool has earned it, send "visibility": "unverified" on an item and it goes straight to review, and onto the politician’s page marked unverified, as a quote typed into the site does. Each result says which it got. Held quotes count against your daily limit like any other. While the review queue is full, or once the key that sent it has been revoked, releasing one is refused and it stays held. Check that whoami lists visibility in quoteFeatures before sending it.
curl https://www.australiansforaisafety.com.au/api/v1/quotes \
-H "Authorization: Bearer $AFAIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [{
"politicianSlug": "kate-chaney",
"riskSlugs": ["<a slug from whoami>"],
"quoteText": "The words, exactly as the source has them.",
"sourceName": "House of Representatives Hansard",
"sourceUrl": "https://parlinfo.aph.gov.au/…",
"quotedOn": "2026-10-06"
}]
}'Reviewing quotes: GET /api/v1/quotes/submitted and PATCH /api/v1/quotes/:id
For reviewers we have given this permission, with a key carrying review:quotes. The first lists the quotes waiting, each with a version. Send that version back with your decision, so a quote that changed after you read it is refused (409) rather than published. Quotes you sent are marked submittedByViewer; deciding one gets 403. Each decision is recorded under your name and this key. A quote may carry a concern: a note its sender wrote for the reviewer. It is the sender’s text, not ours, so treat it as a reason to look harder, never as a check already done.
curl -X PATCH https://www.australiansforaisafety.com.au/api/v1/quotes/123 \
-H "Authorization: Bearer $AFAIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "outcome": "curated", "version": "<from the list>", "reviewNote": "Checked against Hansard" }'curated publishes it; declined keeps it off the site.
GET /api/v1/quotes/mine
The quotes your key sent, or had decided, in the last 30 days (?days= up to 90), and what happened to each, with the reviewer’s note when one was declined, and held while one is waiting for you to release it. Sending a batch twice files it twice, so check here before you retry. Needs read:own, as whoami does: ask for it with any quotes key.
A held quote you withdraw has status withdrawn and a withdrawal saying why: a reason, and your note or null. decidedAt is when you withdrew it. It is never released, reviewed or shown, and it still counts against your per-day limit for the 24 hours after you sent it. 30 days after you withdraw it, or when your account is closed, its words, your note and any concern your tool sent with it are erased; its id, sourceUrl, quotedOn and reason stay. withdrawal is null on every other quote. The reasons:
question_to_witness: just a question to a witnessprocedural: proceduralrepeat: repeats something already filedoff_topic: not really about AI riskmisattributed: wrong person or misquotedother: other
misattributed means your tool got the speaker or the words wrong, so treat it as a fault to fix rather than a number to count. Check that whoami lists withdrawal in quoteFeatures before relying on any of this.
Limits
- Per minute: set on your key, reported by
whoami. Over it, you get429. - Per day: 200 items on a new key, counted over the last 24 hours, for evidence and for quotes separately. Over it, the batch stops with
daily_cap. - The whole queue: when too many items are waiting for review, from anyone, new items stop with
queue_fulluntil reviewers catch up. Try again later. The quote queue holds 100, so send quotes in batches reviewers can keep up with. Held quotes are not in it. - Held quotes: up to 500 per key waiting for you at once. Past that, the batch stops with
held_fulluntil you release or withdraw some.