API
Create an API token on your profile page and pass it as a bearer token.
Submit a word
curl -X POST https://additive-squares.icarm.cloud/api/submit \
-H "Authorization: Bearer asq_..." \
-H "Content-Type: application/json" \
-d '{"word": [2, 4, 7, 4, 1, 0, 7, 0, 1, 0, 4, 2, ...]}'
word is an array of integers (or a string of separated integers).
The response reports the canonical alphabet, the verification outcome, and whether a
record was set:
{
"ok": true,
"canonical": { "alphabet": [0, 1, 2, 4, 7], "size": 5, "diameter": 7, "length": 317 },
"record": { "alphabetId": 12, "status": "improved", "length": 317, "previousLength": 259 }
}
Rejected words return ok: false with the location of an additive square.
Limits: 20,000 letters per word, |letter| ≤ 10⁹, 6 submissions per minute.
Read the database
curl https://additive-squares.icarm.cloud/database.json # every alphabet + record word curl https://additive-squares.icarm.cloud/alphabet/12.json # one alphabet