Translate API

Programmatic text translation service. Endpoints documented below.

Endpoints

POST /v1/translate — translate a single string.

POST /v1/batch — translate up to 100 strings.

GET /v1/languages — list supported languages.

Authentication

All requests require Authorization: Bearer <token>. Please contact the administrator to obtain a token.

Example

curl -X POST https://translate.example.com/v1/translate \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"hello","target":"zh"}'