apyhub
DEVELOPER TOOLS · SMART GENERATION

Correct Text Spelling API

What it does

Spellcheck Text detects misspelled words in short text and returns a corrected version. Send a text string and get back the original text, the corrected text, and a map of misspelled words to their replacements.

Use it when you need to clean user-entered content, normalise short messages before storing them, or add a quick spellcheck step to forms and chat workflows. The request body accepts a single text field, with input limited to 512 tokens.

The response includes original and corrected strings, plus a misspelled object for word-level fixes. That makes it easy to compare the source text with the corrected output or highlight the changes in your own interface.

Spellcheck Text is a good fit for editors, support tools, content moderation pipelines, and any application that needs lightweight text correction without building a full language model flow.

POST
Detect misspelled words and return a corrected version of the text
http://localhost:8080/dosvak/spellcheck-text
QUICKSTARTGUIDE

Quickstart

Send a short piece of text to check and correct its spelling.

curl -X POST "http://localhost:8080/dosvak/spellcheck-text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Ths is a smple sentence."}'

What you'll get back

Returns a JSON object with original and corrected string fields, plus a misspelled object that maps each misspelled word to its correction.

{
  "original": "Ths is a smple sentence.",
  "corrected": "This is a simple sentence.",
  "misspelled": {
    "Ths": "This",
    "smple": "simple"
  }
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Input text (truncated to 512 tokens)

About this endpoint

What it does

Detects misspelled words in the submitted text and returns the original text, a corrected version, and a mapping of misspelled terms to their corrections.

Request Body

ParameterTypeMandatoryDescription
textStringYesInput text. Maximum length: 512 characters; the schema note says it is truncated to 512 tokens.

Response

Returns a JSON object with three top-level fields: original and corrected as strings, and misspelled as an object mapping string keys to string values.

ParameterTypeMandatoryDescription
originalStringNoThe original input text.
correctedStringNoThe corrected version of the text.
misspelledObjectNoAn object whose additional properties are strings, representing misspelled words and their corresponding corrections.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.