Get All Completed Documents
1. Endpoint Details
Endpoint Details
HTTP Method
GET
Endpoint URL
/api/v1/apiwarehouse/all-completed/documents
2. Required Headers
Required Headers
acceptapplication/jsonx-api-keyYour API authentication key3. Example Request
curl --location 'https://api.swellsign.com/api/v1/apiwarehouse/all-completed/documents'
--header 'accept: application/json'
--header 'x-api-key: xWuCfym7ad5f674t3ry7aDpZ3gDJwtE34Ib9raiPEM5xk6IMLBz6gA'3. Example Response
{
"success": true,
"totalItems": 144,
"totalPages": 15,
"currentPage": 1,
"itemsonPage": 10,
"items": [
{
"document_id": "68a9fd6f3c9f273678b515bc",
"document_name": "Test",
"created_by": "686e00764347ec9cdcd9d8fe",
"organization": "686d7644b179e714014d9025",
"template_id": "68a9ac7b2f4a4437942ae5d8",
"status": "complete",
"is_expired": false,
"expires_at": "2025-08-30T00:00:00.000Z",
"created_at": "2025-08-23T17:42:07.467Z",
"updated_at": "2025-08-23T17:47:22.760Z"
},
{
"document_id": "68a9fc3f3c9f273678b514b4",
"document_name": "Test",
"created_by": "686e00764347ec9cdcd9d8fe",
"organization": "686d7644b179e714014d9025",
"template_id": "68a9ac7b2f4a4437942ae5d8",
"status": "complete",
"is_expired": false,
"expires_at": "2025-08-30T00:00:00.000Z",
"created_at": "2025-08-23T17:37:03.750Z",
"updated_at": "2025-08-23T17:37:55.160Z"
},
{
"document_id": "68a9fb9287746eb421572a7d",
"document_name": "Test",
"created_by": "686e00764347ec9cdcd9d8fe",
"organization": "686d7644b179e714014d9025",
"template_id": "68a9ac7b2f4a4437942ae5d8",
"status": "complete",
"is_expired": false,
"expires_at": "2025-08-29T00:00:00.000Z",
"created_at": "2025-08-23T17:34:10.459Z",
"updated_at": "2025-08-23T17:34:46.176Z"
}
]
}5. Response Fields
successbooleanIndicates if the request was successful
totalItemsintegerTotal number of completed documents available
totalPagesintegerTotal number of pages for pagination
currentPageintegerCurrent page number being returned
itemsonPageintegerNumber of items returned on this page
itemsarrayArray of completed document objects
Document Object Fields
document_idstringUnique identifier for the completed document
document_namestringName/title of the document
created_bystringUser ID who created the document
organizationstringOrganization ID that owns the document
template_idstringTemplate ID used to create this document
statusstringDocument status - will always be "complete" for this endpoint
is_expiredbooleanWhether the document has expired
expires_atstring (ISO date)Expiration date of the document
created_atstring (ISO date)Timestamp when the document was created
updated_atstring (ISO date)Timestamp when the document was last updated/completed
