Documentation

The QuirkThing API

?

Drive a conversation over HTTP, and see how the answer was reached.

What the API is

Quirk answers with the decision model's estimates beside the reply, rather than only the reply. The API exposes that same conversation: you send a message, and the answer comes back with the probabilities that shaped it.

These are the same conversations the app runs. A chat started here appears in the app's history list and can be picked up and continued in the browser, and one started in the browser can be carried on from here.

Authentication

Every request carries an API key. The key belongs to an account, and a request answers for that account: it reaches that account's chats and nothing else. Create one on the API keys page, then send it as a bearer token.

Exampleshell
curl http://localhost:3000/api/v1/chats \
  -H "Authorization: Bearer qk_..."

Next steps

Prefer to click than to read? The API playground sends a real request from the browser, using one of your own keys.