Document Case Documents
The files uploaded to a Document Case. A file record has the same fields as a Request Document.
Schema
Type Object
| Name | Type | Description |
|---|---|---|
content_type |
String | Desc. content_type |
expires_at |
String(format:date-time) | Desc. expires_at |
filename |
String | The filename of the document. |
id |
String(format:uuid) | Desc. id |
inserted_at |
String(format:date-time) | An ISO8601 formatted timestamp |
name |
String(1..128) | Desc. name |
notes |
String | Desc. notes |
updated_at |
String(format:date-time) | An ISO8601 formatted timestamp |
Desc. content_type
The mime type of the document, this will be returned as the content-type header when downloading the asset.
Desc. expires_at
An ISO8601 timestamp denoting when the document will be considered expired, note you may still be able to retrieve the associated file, but once over the timestamp, it will not be guaranteed.
Desc. id
A Universally unique identifier, which identifies the resource
Desc. name
A unique name identifying the document, must be unique to the request
Desc. notes
Any additional information about the request, may be read by an operations personel in case of manual action
Example
{
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2021-08-13T04:08:44.762841Z",
"filename": "acme_corp-lrn-2025-03-03.docx",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "LOA",
"notes": "string",
"updated_at": "2021-08-13T04:08:44.762841Z"
}
API
Upload Document Case File
POST /api/v1/document_cases/{document_case_id}/documents HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| document_case_id | String(format:uuid)! | Path Desc. document_case_id |
Path Desc. document_case_id
Document Case ID A Universally unique identifier, which identifies the resource
Request multipart/form-data
POST /api/v1/document_cases/{document_case_id}/documents HTTP/1.1
Accept: application/json
Content-Type: multipart/form-data; boundary=ExampleBoundary7MA4YWxkTrZu0gW
Content-Length: 592
--ExampleBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="example.bin"
Content-Type: application/octet-stream
<binary file contents>
--ExampleBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file_hint"
DEFAULT
--ExampleBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="filename"
abc.pdf
--ExampleBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"
LOA
--ExampleBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="notes"
LOA from client on 2026-05-20.
--ExampleBoundary7MA4YWxkTrZu0gW--
Response 201
application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 432
{
"data": {
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2021-08-13T04:08:44.762841Z",
"filename": "acme_corp-lrn-2025-03-03.docx",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "LOA",
"notes": "string",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Delete Document Case File
DELETE /api/v1/document_cases/{document_case_id}/documents/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| document_case_id | String(format:uuid)! | Path Desc. document_case_id |
| id | String(format:uuid)! | Path Desc. id |
Path Desc. document_case_id
Document Case ID A Universally unique identifier, which identifies the resource
Path Desc. id
Document ID A Universally unique identifier, which identifies the resource
Request
DELETE /api/v1/document_cases/{document_case_id}/documents/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 432
{
"data": {
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2021-08-13T04:08:44.762841Z",
"filename": "acme_corp-lrn-2025-03-03.docx",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "LOA",
"notes": "string",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
List Document Case Files
GET /api/v1/document_cases/{document_case_id}/documents HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| document_case_id | String(format:uuid)! | Path Desc. document_case_id |
Query Parameters
| Name | Type | Description |
|---|---|---|
| first | Integer | Query Desc. first |
| last | Integer | Query Desc. last |
| after | String | Query Desc. after |
| before | String | Query Desc. before |
Path Desc. document_case_id
Document Case ID A Universally unique identifier, which identifies the resource
Query Desc. first
The number of items to return starting from the 'after' cursor
Query Desc. last
The number of items to return behind the 'before' cursor
Query Desc. after
The cursor representing the starting point of a 'first' based paging
Query Desc. before
The cursor representing the starting point of a 'last' based paging
Request
GET /api/v1/document_cases/{document_case_id}/documents HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 695
{
"count": 1,
"page_info": {
"end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
},
"results": [
{
"data": {
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2021-08-13T04:08:44.762841Z",
"filename": "acme_corp-lrn-2025-03-03.docx",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "LOA",
"notes": "string",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document"
}
]
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Retrieve Document Case File Record
GET /api/v1/document_cases/{document_case_id}/documents/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| document_case_id | String(format:uuid)! | Path Desc. document_case_id |
| id | String(format:uuid)! | Path Desc. id |
Path Desc. document_case_id
Document Case ID A Universally unique identifier, which identifies the resource
Path Desc. id
Document ID A Universally unique identifier, which identifies the resource
Request
GET /api/v1/document_cases/{document_case_id}/documents/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 432
{
"data": {
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"expires_at": "2021-08-13T04:08:44.762841Z",
"filename": "acme_corp-lrn-2025-03-03.docx",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"name": "LOA",
"notes": "string",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Download Document Case File
GET /api/v1/document_cases/{document_case_id}/documents/{document_id}/download HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| document_case_id | String(format:uuid)! | Path Desc. document_case_id |
| document_id | String(format:uuid)! | Path Desc. document_id |
Path Desc. document_case_id
Document Case ID A Universally unique identifier, which identifies the resource
Path Desc. document_id
Document ID A Universally unique identifier, which identifies the resource
Request
GET /api/v1/document_cases/{document_case_id}/documents/{document_id}/download HTTP/1.1
Accept: application/json
Response 200
/
HTTP/1.1 200
Any general binary blob from a file response call.
Depending on the API in, this response may have its content-type header appropriately set, or defaults to application/octet-stream.
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}