LingoX API Documentation
Welcome to the LingoX API documentation. This API provides endpoints to create apps, translate text, manage authentication, and more.Features
- Create and manage apps.
- Immediate and queued text translations.
- Secure user authentication.
Authentication
This API uses Bearer tokens for secure communication. Include the token in theAuthorization
header:
x-api-key
and x-api-secret
headers, you will get it after creating your first app.
Endpoints
Auth Endpoints
Login User
POST/auth/login
Login a user to receive a Bearer token.
JavaScript Example:
Sign Up
POST/auth/signup
Register a new user.
JavaScript Example:
Get Profile
GET/auth/profile
Retrieve the profile of the authenticated user.
JavaScript Example:
App Management
Create App
POST/create
Create a new app.
JavaScript Example:
List Apps
GET/list
Retrieve all apps associated with the user.
JavaScript Example:
Translation Endpoints
Immediate Translation
POST/translateText
Request immediate text translation.
Note: The from
field is optional. If not provided, the model will automatically detect the source language.
JavaScript Example:
Queued Translation
POST/queue
Request queued text translation.
JavaScript Example: