API Reference
The Docyard API is a RESTful API for document distribution. This section documents all available endpoints.Base URL
Authentication
All endpoints require API key authentication:Response Format
All responses return JSON:Error Format
Errors return appropriate HTTP status codes with structured responses:API Sections
Artifact Types
Templates that define document types and their lock requirements.| Endpoint | Description |
|---|---|
| List Templates | Get available templates |
| Create Template | Create a new template |
| Get Template | Get template details |
| Update Template | Update a draft template |
| Delete Template | Delete a draft template |
Admin
Admin endpoints for vetting templates and managing the platform.| Endpoint | Description |
|---|---|
| List Pending Templates | Get templates awaiting review |
| Approve Template | Approve a template |
| Reject Template | Reject a template |
Ramps
Upload endpoints for distributors.| Endpoint | Description |
|---|---|
| List Ramps | Get your ramps |
| Create Ramp | Create a new ramp |
| Upload Artifact | Upload a single artifact |
| Batch Upload | Upload multiple artifacts |
| Rotate Keys | Rotate API keys |
Docks
Retrieval endpoints for collectors.| Endpoint | Description |
|---|---|
| List Lock Types | Discover available lock types |
| Search | Search for artifacts |
| Retrieve | Retrieve a single artifact |
| Batch Retrieve | Retrieve multiple artifacts |
| Async Retrieve | Start async retrieval job |
Artifacts
Manage uploaded artifacts.| Endpoint | Description |
|---|---|
| Get Artifact | Get artifact details |
| Revoke Artifact | Revoke an artifact |
| List Artifacts | List your artifacts |
Audit
Access audit logs.| Endpoint | Description |
|---|---|
| List Logs | Query audit logs |
| Get Entity Logs | Get logs for a specific entity |
Rate Limits
| Category | Limit |
|---|---|
| General API | 1000 requests/minute |
| Upload (distributor) | 100 requests/minute |
| Search (collector) | 300 requests/minute |
| Retrieve (collector) | 100 requests/minute |
SDKs
Official SDKs coming soon:- Node.js / TypeScript
- Python
- Go
Postman Collection
Download our Postman collection to explore the API: Download Postman CollectionNext Steps
- Authentication - Set up API keys
- Errors - Handle errors properly
- Quickstart - Get started in 5 minutes