Skip to main content

API Overview

The DocuTrust API is a RESTful JSON API for creating templates, managing submissions, and integrating document signing into your applications.

Base URL

All API requests are made to your DocuTrust instance URL:
Replace your-app.com with your actual DocuTrust deployment domain.

Authentication

Authenticate every request by including your API token in the X-Auth-Token header:
API tokens are created in Settings > API within the DocuTrust admin panel. Each token can be scoped to specific permissions. See the Authentication guide for details on creating and managing tokens.
Never expose your API token in client-side code, public repositories, or browser requests. API tokens should only be used in server-to-server communication.

Content Types

All request bodies must be valid JSON unless the endpoint accepts file uploads, in which case multipart/form-data is used.

Rate Limits

API requests are rate-limited to 120 requests per minute per API token. When the limit is exceeded, the API returns 429 Too Many Requests:
The Retry-After header indicates the number of seconds to wait before retrying.

Pagination

List endpoints use cursor-based pagination for consistent results even when data is being created or deleted between pages.

Request Parameters

Response Format

Pass the next cursor as the after parameter to fetch the next page:

Error Handling

All errors return a JSON object with an error field containing a human-readable message:

HTTP Status Codes

Validation Errors

For 422 responses, the error message describes which field failed validation:

Versioning

The DocuTrust API is currently at version 1. There is no version prefix in the URL — all endpoints are accessible directly under /api/.

Breaking Changes Policy

  • Breaking changes will be announced at least 90 days in advance via email and the changelog.
  • Non-breaking additions (new fields in responses, new optional parameters, new endpoints) are made without a version bump.
  • When a new API version is introduced, the previous version will remain available for a deprecation period of at least 12 months.

Request IDs

Every API response includes an X-Request-Id header containing a unique identifier for the request. Include this ID when contacting support about a specific request:

Webhooks

DocuTrust can send real-time notifications to your server when events occur (e.g., a submission is completed, a submitter opens a document). Webhook payloads are signed with HMAC-SHA256 for verification. See the Webhooks guide for configuration details.