The Platform API uses Bearer token authentication. All API requests must include an Authorization header with your API key.

Getting Your API Key

  1. Sign up for a Dubformer account
  2. Navigate to the API section in your dashboard
  3. Click “Create API key” to generate your token
  4. Copy your API key and store it securely
Keep your API key secure and never expose it in client-side code. Treat it like a password.

Making Authenticated Requests

Include your API key in the Authorization header of every request:
curl -X GET https://app.dubformer.ai/api/v1/balance \
  -H "Authorization: Bearer YOUR_API_KEY"

Required Headers

Every API request must include:
  • Authorization: Bearer YOUR_API_KEY - Your authentication token
  • Content-Type: application/json - For POST requests with JSON body

Optional Headers

  • Idempotency-Key - For POST requests to ensure request uniqueness and prevent duplicate processing
Example with all headers:
curl -X POST https://app.dubformer.ai/api/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-request-id" \
  -d '{"name": "My Project", "source_lang": "en", "target_lang": "fr-FR"}'