Skip to main content

API Overview

VaultysClaw provides a comprehensive REST API for managing agents, workflows, channels, and governance policies. All APIs follow consistent response formats and pagination patterns.

Response Format

All successful API responses follow a consistent structure:

List Responses (Paginated)

{
"items": [],
"pagination": {
"total": 100,
"page": 1,
"pageSize": 50,
"totalPages": 2
}
}

Single Resource Responses

{
"id": "resource-id",
"name": "Resource Name",
"createdAt": "2026-05-28T14:30:45Z",
"updatedAt": "2026-05-28T14:30:45Z"
}

Error Responses

{
"error": "Resource not found",
"code": "NOT_FOUND",
"statusCode": 404,
"details": {},
"timestamp": "2026-05-28T14:30:45Z"
}

Pagination

All list endpoints support standard pagination parameters:

ParameterTypeDefaultMaxDescription
pagenumber1-1-indexed page number
pageSizenumber50100Items per page
sortBystring--Field to sort by
sortDirstringdesc-Sort direction: asc or desc

Searching and Filtering

Most list endpoints support a search parameter q for free-text search. Filter parameters are endpoint-specific.

Common Error Codes

CodeStatusDescription
VALIDATION_ERROR400Request validation failed
NOT_FOUND404Resource not found
UNAUTHORIZED401Authentication required
FORBIDDEN403Insufficient permissions