API Documentation
Complete reference documentation for the Terry Translation API.
Translation API
Translate Text
POST /v1/translate
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"text": "Hello, world!",
"source": "en",
"target": "es"
}
Batch Translation
POST /v1/translate/batch
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"texts": ["Hello", "World"],
"source": "en",
"target": "es"
}
File Translation
POST /v1/translate/file
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_KEY
file=@local.json
source=en
target=es
Project Management API
Create Project
POST /v1/projects
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"name": "My Project",
"sourceLanguage": "en",
"targetLanguages": ["es", "fr"]
}
Get Project Status
GET /v1/projects/{project_id}
Authorization: Bearer YOUR_API_KEY
Error Handling
All errors follow this format:
{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"details": { ... }
}
}
Next Steps
- See API Examples for practical usage
- Learn about Best Practices
- Check FAQ for common issues