Datawise Logo

Docs

API Documentation

Version 1.0.0

DataWise Document Exchange

API v1.0.0

Authentication

Security Notice

Never expose your API key in client-side code or public repositories. Always make API calls from your backend server.

API Key Authentication

The DataWise Document Exchange API uses API key authentication. Include your API key in the Authorization header as a Bearer token for all requests.

Authorization: Bearer YOUR_API_KEY

Getting Your API Key

  1. Create an Account

    Sign up for a DataWise account if you have not already

  2. Create an Application

    Navigate to your dashboard and create a new application

  3. Set Up Payment

    Add a payment method and configure auto-recharge settings

  4. Copy Your API Key

    Your API key will be displayed in the application settings

Each application has its own unique API key. You can create multiple applications to organize different projects or environments (development, staging, production).

Request Examples

curl -X POST https://api.datawise.app/api/datawise_document_exchange \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "ddx_outputFormat=pdf" \
  -F "firstName=John" \
  -F "ddx_template=@template.docx"

API Key Security

Do's

  • • Store API keys in environment variables
  • • Make API calls from backend servers

Don'ts

  • • Never commit keys to version control
  • • Don't expose keys in client-side JavaScript
  • • Avoid hardcoding keys in source code
  • • Don't share keys via email or chat

Environment Variables

Best practice: Store your API key in environment variables

.env file:

DATAWISE_API_KEY=your_api_key_here

Usage in Node.js:

require('dotenv').config();
const apiKey = process.env.DATAWISE_API_KEY;

Authentication Errors

Error CodeMessageSolution
AUTH_NO_API_KEYNo API key providedInclude Authorization header with Bearer token
AUTH_INVALID_API_KEYInvalid API keyCheck your API key is correct and active
AUTH_APP_NOT_ACTIVEApplication is not activeEnsure your application is active
PAYMENT_INSUFFICIENT_FUNDSInsufficient funds in accountMake sure your credit/debit card is valid and has funds

Need Help?

If you're having authentication issues, check your dashboard for API key status and balance, or contact our support team for assistance.

© Copyright 2026, Datawise Document Exchange.