For AI agents: a documentation index is available at https://docs.coverbase.com/llms.txt. This page is also available in markdown by appending .md to the URL.
A document (cbvdoc_...) is an evidence file (SOC 2 report, pentest report, policy, contract, questionnaire, diagram, …) that belongs to a vendor (cbvndr_...). A document can additionally be linked to any number of that vendor’s services (cbsvc_...) and assessments (cbqsrw_...).
Use this API to upload a document, attach it where it belongs, list and inspect documents, fetch a short-lived download URL, re-link, and archive.
All endpoints are org-scoped to the API key. See API conventions for authentication, IDs, timestamps, idempotency, pagination, and the error envelope.
Smart limits. Uploads are capped at 100 MiB per file. Allowed file
types:
pdf, doc, docx, rtf, txt, md, xls, xlsx, xlsm, csv,
ppt, pptx, png, jpg, jpeg, gif, webp, zip, msg, eml. Anything
else is rejected with 400 unsupported_file_type; an oversized file is rejected
with 413 file_too_large. List responses page at limit 1-200 (default 50).Upload a document
Uploads a file and creates a document attached to a vendor. The request ismultipart/form-data: send the file plus its links in one call. Returns
201 Created with the document object.
After upload, Coverbase asynchronously classifies the document (and, where
applicable, runs AI analysis). The returned status reflects this in-progress
state; poll GET /v1/documents/{document_id} to observe it settle.
Form fields
Optional document type slug (for example,
soc2_type2_auditor_report,
penetration_test_report, commercial_contract). Omit it to let Coverbase
infer the type from the file. An unknown slug returns 422 invalid_document_type.Headers
Optional. Replaying the same key within 24 hours returns the original
201 body. See Idempotency.Example request
Example response
201 Created: the document object:
The document object
List documents
Returns a paginated list of documents. Combine the filters to narrow the result.cURL
Get a document
Returns a single document’s metadata and links, or404 document_not_found.
cURL
Download a document
Returns a short-lived (one hour) presigned URL for the document’s file. Follow the returnedurl with a plain GET (no Authorization header) to fetch the
bytes; it serves the file as an attachment with the original filename.
cURL
Update a document
Updates the name, type, and links. All fields are optional; omitted fields are left unchanged. Supplying a list forservice_ids / assessment_ids
replaces the existing set (pass [] to clear it).
cURL
Archive a document
Archives (soft-deletes) the document. The underlying record is retained for audit but no longer appears in list results.cURL
Attaching documents to assessments
There are three ways to link a document to an assessment:- At upload time: pass
assessment_idstoPOST /v1/documents(orservice_idsto attach to services). - At assessment-create time: upload the document first, then pass its ID
in
supporting_document_idswhen callingPOST /v1/assessments. - Later:
PATCH /v1/documents/{document_id}withassessment_ids/service_ids.
Errors
See the error envelope for the response shape.