API Reference

Complete API documentation for integrating with Quatrolingual services and accessing your data programmatically.

Authentication

API Key

All API requests require authentication using your API key. Include it in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Getting Your API Key

You can generate and manage your API keys from your dashboard.Go to Dashboard

Endpoints

Get User Information

GET/api/user/me

Retrieve current user information and credit balance

Response:

{
  "id": "user_123",
  "email": "user@example.com",
  "name": "John Doe",
  "credits": 150,
  "createdAt": "2024-01-01T00:00:00Z"
}

List Products

GET/api/products

Get a list of all available products

Query Parameters:

  • category - Filter by category ID
  • limit - Number of results (default: 20)
  • offset - Pagination offset

Purchase Product

POST/api/products/purchase

Purchase a product using credits

Request Body:

{
  "productId": "prod_123",
  "quantity": 1
}

Get Download Link

GET/api/downloads/:purchaseId

Get a secure download link for a purchased product

Response:

{
  "downloadUrl": "https://...",
  "expiresAt": "2024-01-01T01:00:00Z"
}

Rate Limits

Standard Plan

  • • 1000 requests per hour
  • • 10 concurrent requests
  • • 5MB request size limit

Premium Plan

  • • 10,000 requests per hour
  • • 50 concurrent requests
  • • 25MB request size limit

Note: Rate limit headers are included in all responses to help you track your usage.

Error Codes

400Bad Request - Invalid parameters
401Unauthorized - Invalid API key
403Forbidden - Insufficient permissions
429Too Many Requests - Rate limit exceeded
500Internal Server Error

SDKs & Libraries

Official SDKs

JavaScript/TypeScript
Python
PHP

Community Libraries

Ruby
Go
Java

Need Help?

Have questions about the API? Check out our tutorials or contact support.