Translation API (1.0.0)

Download OpenAPI specification:Download

Introduction

This translation server allows to performs machine and human translation.

Authentication

The Translation API uses Bearer Auth to authenticate users. Use Login endpoint with your Translate.com credentials to get an access token.

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

Login

Determine acces token. Access token has 1 year life time duration

Request Body schema: application/json

Your credentials - email and password

email
required
string <email>
password
required
string

Password

Responses

Request samples

Content type
application/json
{
  • "email": "Valid email address",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "meta":
    {
    },
  • "data":
    {
    }
}

Machine translation

Authorizations:
Request Body schema: application/json

Translation data to perform machine translation

text
required
string

A text needed to translate

source_language
required
string

The original language of the source text

translation_language
required
string

The language to be translated

Responses

Request samples

Content type
application/json
{
  • "text": "Some text to translate",
  • "source_language": "en",
  • "translation_language": "fr"
}

Response samples

Content type
application/json
{
  • "meta":
    {
    },
  • "data":
    {
    }
}

Human Translation

Authorizations:
Request Body schema: application/json

Translation data to create human translation

text
string

A source text

source_language
string

The language of the source text

translation_language
array

Translation Language

object (CompletionAction)

Describe how translation should be delivered to the user

Responses

Request samples

Content type
application/json
Example
{}

Response samples

Content type
application/json
{
  • "meta":
    {
    },
  • "data":
    {
    }
}