API Documentation

Integrate our conversion services into your application with our powerful API

Getting Started

Learn how to authenticate and make your first API request

Authentication

All API requests must include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Rate Limits

Our API has the following rate limits:

Free Tier

100 requests/hour

Pro Tier

1000 requests/hour

Enterprise

Custom limits

Error Handling

All errors follow this format:

{ "error": { "code": "ERROR_CODE", "message": "Human readable message", "details": "Additional details if available" } }

API Reference

Detailed documentation for all available endpoints

Register a new user

POST
/auth/register

Request

{ "email": "user@example.com", "password": "password123" }

Response

{ "user": { "id": "user_123", "email": "user@example.com" }, "token": "eyJhbGciOiJIUzI1NiIs..." }

Login user

POST
/auth/login

Request

{ "email": "user@example.com", "password": "password123" }

Response

{ "user": { "id": "user_123", "email": "user@example.com" }, "token": "eyJhbGciOiJIUzI1NiIs..." }

Code Examples

Example implementations in various programming languages

1 2 3 4 5 6 7 8 9 10 11 12 13 const response = await fetch('https://api.convert.com/v1/file/convert', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({ file: fileData, targetFormat: 'pdf' }) }); const data = await response.json();