Skip to content

Containers

Containers are the top-level grouping for documents. Each organisation can have multiple containers — for example, one for “Website Agreements” and another for “Employee Onboarding”.

MethodPathDescription
GET/api/v1/containersList all containers
POST/api/v1/containersCreate a container
GET/api/v1/containers/:idGet a container
DELETE/api/v1/containers/:idDelete a container

GET /api/v1/containers

Returns all containers for the authenticated organisation.

Request: No body or query parameters required.

Response 200:

{
"data": [
{
"id": "018e1234-abcd-7000-8000-000000000001",
"name": "Website Agreements",
"description": "All website legal documents",
"org_id": "018e1234-abcd-7000-8000-000000000000",
"created_by": "018e1234-abcd-7000-8000-000000000002",
"created_at": "2026-02-01T09:00:00.000Z",
"updated_at": "2026-02-01T09:00:00.000Z"
}
]
}

Error cases:

StatusCodeCause
401UNAUTHORIZEDMissing or invalid API key

POST /api/v1/containers

Request body:

FieldTypeRequiredConstraints
namestringYes1–100 characters
descriptionstringNoMax 500 characters
{
"name": "Website Agreements",
"description": "Terms of Service and Privacy Policy"
}

Response 201:

{
"data": {
"id": "018e1234-abcd-7000-8000-000000000001",
"name": "Website Agreements",
"description": "Terms of Service and Privacy Policy",
"org_id": "018e1234-abcd-7000-8000-000000000000",
"created_by": "018e1234-abcd-7000-8000-000000000002",
"created_at": "2026-02-01T09:00:00.000Z",
"updated_at": "2026-02-01T09:00:00.000Z"
}
}

Error cases:

StatusCodeCause
400BAD_REQUESTname is empty or exceeds 100 characters
401UNAUTHORIZEDMissing or invalid API key

GET /api/v1/containers/:id

Path parameters:

ParameterTypeDescription
idUUIDContainer ID

Response 200:

{
"data": {
"id": "018e1234-abcd-7000-8000-000000000001",
"name": "Website Agreements",
"description": "All website legal documents",
"org_id": "018e1234-abcd-7000-8000-000000000000",
"created_by": "018e1234-abcd-7000-8000-000000000002",
"created_at": "2026-02-01T09:00:00.000Z",
"updated_at": "2026-02-01T09:00:00.000Z"
}
}

Error cases:

StatusCodeCause
400BAD_REQUESTid is not a valid UUID
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDContainer does not exist in this organisation

DELETE /api/v1/containers/:id

Path parameters:

ParameterTypeDescription
idUUIDContainer ID

Response 200:

{
"data": { "success": true }
}

Error cases:

StatusCodeCause
400BAD_REQUESTid is not a valid UUID
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDContainer does not exist in this organisation