Skip to content

Quickstart

Go to app.openkob.com and continue with Google or GitHub. You get a personal workspace right away.

Open Developers → API keys and choose Create key. Give it a name and an expiry.

Copy the key when it’s shown. You won’t see it again. Only workspace owners and admins can create keys.

Store it in an environment variable:

Terminal window
export OPENKOB_API_KEY="ok_..."
Terminal window
curl https://api.openkob.com/v1/text/grammar \
-H "Authorization: Bearer $OPENKOB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"Oli otya otya ?"}'

The response lists the issues found:

{
"object": "grammar.check",
"issues": [
{ "rule_id": "G_REPEATED_WORD", "offset": 8, "length": 5, "severity": "suggestion",
"message": "Repeated word. Remove it if it's unintended.", "replacements": [""] },
{ "rule_id": "G_SPACE_BEFORE_PUNCT", "offset": 13, "length": 1, "severity": "error",
"message": "Remove the space before punctuation.", "replacements": [""] }
]
}

See requests per day in Developers → Usage, or call GET /v1/usage.