Developer Documentation

Welcome to the Translayte API documentation. Below you'll find a list of our endpoints along with example requests to help you integrate seamlessly.

Endpoints

Example Request

fetch("https://api.translayte.it/api/translate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
  },
  body: JSON.stringify({ key: "hello", language: "es" })
})
.then(response => response.json())
.then(data => console.log(data));

Error Handling

All endpoints return standard HTTP status codes. In case of errors, a JSON response with an error field will be provided.