Introduction

Get started with DocsAPI in minutes.

Welcome to the DocsAPI documentation. DocsAPI is a powerful, RESTful API that allows you to integrate document management capabilities into your applications quickly and easily.

✅ New: Version 3.0 is now available with improved performance and new features. Check the changelog for details.

Quick Start

Getting started is simple. First, install the SDK:

npm install @docsapi/sdk

Then initialize the client with your API key:

import { DocsAPI } from '@docsapi/sdk';

const client = new DocsAPI({
  apiKey: 'your-api-key-here',
  baseUrl: 'https://api.docsapi.io/v3'
});

// Create a document
const doc = await client.documents.create({
  title: 'My First Document',
  content: 'Hello, World!'
});

console.log(doc.id); // doc_abc123

Authentication

All API requests require authentication via an API key. Include your key in the Authorization header:

Authorization: Bearer your-api-key-here
âš ī¸ Important: Never expose your API key in client-side code. Always use a backend proxy for API calls.

Base URL

EnvironmentBase URL
Productionhttps://api.docsapi.io/v3
Staginghttps://staging.api.docsapi.io/v3

Rate Limits

API requests are rate-limited to protect the service. Current limits:

â„šī¸ Tip: Use the X-RateLimit-Remaining response header to track your quota.