How to get started with the ClearRun hosted API
The hosted API lives at https://api.clearrun.net. Send an answer to POST /api/score, or send it with its question to POST /api/evaluate. A verified free account can create one developer key. A free account has 30 credits a month and can also score in the web app with Paste Check or chat.
Last updated
First steps
Sign in
Sign in at api.clearrun.net/login with Google, GitHub, or an email link. Your first sign-in creates an account.
Create a key
Open api.clearrun.net/account/keys and create a key. Copy it right away. It is shown only once.
Send the key
Send the key on every scoring request as
Authorization: Bearer YOUR_KEY.
The endpoints you'll use first
| Method and path | Needs a key | What it does |
|---|---|---|
POST /api/score | Yes | Scores text you already have |
POST /api/evaluate | Yes | Scores an answer, with the question if you have it |
POST /api/chat | Yes | Gets an answer from a model, then scores it |
GET /api/verify/{verdictId} | No | Looks up a past verdict. Does not score |
responseText is required for score and evaluate. Score, evaluate and chat accept text from 10 to 100,000 characters. See ClearRun limits.
A first request
curl -s https://api.clearrun.net/api/score \
-H "Authorization: Bearer $CLEARRUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "responseText": "The capital of France is Paris." }'
From the SDK, the same call is client.score({ responseText }). Full steps: How to score an answer with the API.