API Overview
The Docyard API is organized around REST. It uses JSON request/response bodies, standard HTTP verbs, and returns conventional HTTP status codes.Base URL
/v1.
Resource Hierarchy
Most resources are scoped to a dock (tenant workspace):Request Format
- Content-Type:
application/jsonfor JSON bodies,multipart/form-datafor file uploads - Authentication:
Authorization: Bearer <api_key>header on all requests - IDs: All resource IDs are opaque strings
Response Format
All responses return JSON. Successful responses return the resource directly. Error responses follow the standard error format.Pagination
List endpoints support pagination vialimit and offset query parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 100 | Maximum items to return (max 1000) |
offset | integer | 0 | Number of items to skip |
Idempotency
POST endpoints that create resources are not idempotent by default. Artifact uploads are an exception — uploading the same file content returns the existing artifact with isDuplicate: true.