Wallgone API docs

Errors

Every error code the /v1 endpoints return, with its status and message.

Updated One minute to read

An error answer has a code for your program and a sentence you can show to people.

Error shape

Error
{
  "error": "bad_lang",
  "message": "Choose the language readers should get, like en or pt-BR."
}

All codes

These are all the codes the /v1 endpoints return. The key is checked first, so a request without a valid key gets 401 whatever else is wrong with it.

CodeStatusEndpointsMessage and meaning
unauthorized401All“Send your API key as: Authorization: Bearer wg_…”. The key is missing, mistyped or revoked.
inactive403links, warm“This account is suspended, so new links can’t be made…” or “…so pages can’t be loaded ahead…”, with the address to write to. The account is suspended. Every new account starts on the Free plan, so this is rare.
not_in_plan403All“The API and MCP are part of Starter, Pro and Premium. Choose a plan in Dashboard → Billing.” The account is on Free, for example after a paid plan ended: its keys stop working until a plan is chosen.
not_in_plan403warm“Loading pages ahead of time is part of Pro and Premium.”
over_quota403warm“This month’s translated pages are used up, so there’s nothing to load ahead for.” Links open the original until the 1st.
warm_limit429warm“That’s as many pages as your plan loads ahead in a month.” As many as the plan’s pages a month: 1,000 on Pro, 3,000 on Premium. It starts again on the 1st.
bad_url400links, warm“Enter the full address of the page, starting with https://” (from warm: “Enter the full address, starting with https://”). The url field is missing or not a full address, or the body couldn’t be read: no JSON or form content type, or invalid JSON.
bad_url400links, warm“That address can't be translated. Use a public web page.” The address is one the translator never loads.
unsafe_url400links“Google Safe Browsing lists this page as dangerous (phishing or malware), so Wallgone won't link to it.” Google Web Risk lists the page as phishing, malware or unwanted software.
bad_lang400links“Choose the language readers should get, like en or pt-BR.”
bad_links400links/bulk“Send 1 to 500 links: …” links is missing, empty, not a list, or longer than 500. Send more links in several requests.
bad_lang_switch400links“lang_switch is true, false, or left out for the account’s setting.”
bad_country400links, warm“Use a two-letter country code like jp, or leave it out.”
blocked403warm“This publisher asked not to be translated, so its pages open as they are.”
plan_changing409warm“Your plan changed a moment ago. Try again in 30 seconds.”
not_found404All“No such endpoint.” The path or the method is wrong, such as GET /v1/warm.
server500All“Something went wrong on our side. Try again in a minute.”
translator502warm“Couldn't reach the translator. Try again in a minute.”
Was this page useful?