Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

POST/v1/assets/upload
Upload a file up to 5 MB to the Truthlocks asset store. Assets are stored with AES-256 server-side encryption (AES-256) at rest and served with proper Content-Type headers and caching. Use this endpoint for logos, evidence files, supporting documentation, and other attachments that need to be referenced from your tenant resources.

Parameters

file
file
required
The file to upload. Send as multipart/form-data. Maximum size is 5 MB.
purpose
string
Optional tag describing the asset’s intended use. Common values: logo, evidence, documentation, branding.

Responses


Retrieve asset

GET/v1/assets/{id}
Retrieve a previously uploaded asset by its ID. The response streams the file with the original Content-Type and a Cache-Control: public, max-age=86400, immutable header.

Parameters

id
string
required
The asset ID returned from the upload endpoint.