Download Signed Contracts

Bundle every signed contract PDF for a company into a single zip. Returns the zip bytes base64-encoded plus its filename and content type, matching generateReport. Only contracts the caller may view are included; optionally narrowed to one team.

Authentication

X-Thera-API-Keystring
API Key authentication via header

Path parameters

companyIdstringRequired

Query parameters

teamIdstringOptional
If set, restrict the archive to contracts on this team. Must be a team the caller has permission to view.

Response

This endpoint returns an object.
filenamestring
contentTypestring
base64Contentstring

The zip archive bytes, base64-encoded. Decode to a Blob using contentType and download using filename.

contractCountinteger
How many signed contracts are in the archive.
skippedCountinteger
How many signed contracts were left out because their stored file could not be read. Non zero means the archive is incomplete.