API Documentation
Integrate XLIFF AI Translator into your applications
Overview
The XLIFF AI Translator API allows you to programmatically translate XLIFF files using our advanced AI models. The API is RESTful and returns JSON responses.
Base URL
https://api.xliffai.com/v1
Authentication
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Authentication
Getting Your API Key
API keys are available for Pro and Enterprise users in your Settings page.
- Go to your Settings page
- Navigate to the API Access section
- Copy your API key
- Keep it secure and never share it publicly
Using Your API Key
Include your API key in the Authorization header of all requests:
Translations Management
List Translations
GET /api/v1/translations
Query Parameters
Response
Get Translation
GET /api/v1/translations/{id}
Response
Create Translation
POST /api/v1/translations
Request Body (multipart/form-data)
Parameters
Update Translation
PATCH /api/v1/translations/{id}
Request Body (JSON)
Delete Translation
DELETE /api/v1/translations/{id}
Returns 204 No Content on successful deletion.
Download Translation
GET /api/v1/translations/{id}/download
Downloads the final translated document as a file attachment.
Error Handling
Error Response Format
Common Error Codes
invalid_api_key
401 - Invalid or missing API key
rate_limit_exceeded
429 - API rate limit exceeded
invalid_file_format
400 - Unsupported file format
file_too_large
400 - File size exceeds limit
unsupported_language
400 - Language not supported
Rate Limits
Free Plan
5
requests per month
Pro Plan
100
requests per month
Enterprise
∞
unlimited requests
Rate Limit Headers
API responses include rate limit information in headers: