Quickstart
Learn how to get started with the Lia API in 5 minutes - generate an API key, verify authentication, and make your first translation request.
1
2
curl https://api.acolad.ai/whoami \
-H "x-api-key: YOUR_API_KEY"{
"user": {
"id": "user_123",
"email": "[email protected]",
"name": "John Doe"
},
"workspace": {
"id": "ws_abc",
"name": "Acme Corp"
}
}3
curl -X POST https://api.acolad.ai/translate/text \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world",
"targetLang": "fr"
}'{
"translation": "Bonjour le monde",
"characterCount": 11,
"detectedSourceLang": "en"
}curl -X POST https://api.acolad.ai/translate/text \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world",
"sourceLang": "en",
"targetLang": "es"
}'{
"translation": "Hola mundo",
"characterCount": 11,
"detectedSourceLang": "en"
}Next Steps
OverviewAuthenticationVersioningPaginationErrorsLast updated
Was this helpful?