Download a document version
curl --request GET \
--url https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}"<string>"Workspace document vault
Download a document version
Requires a signed-in workspace member bearer session. API keys are not accepted. Workspace and environment come from the validated session. Changes require the workspace owner or administrator.
GET
/
v1
/
vault
/
documents
/
{id}
/
versions
/
{version}
/
download
Download a document version
curl --request GET \
--url https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/vault/documents/{id}/versions/{version}/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}"<string>"Use a valid workspace bearer session. An API key cannot authorize this endpoint. The current workspace and environment are derived from that session.
See information handling for file limits, versioning, holds, retention and disposal behavior.
Authorizations
JWT for user-initiated operations
Path Parameters
Document identifier in the current workspace environment.
Version UUID, not the numeric version sequence.
Response
Authenticated file attachment after size/checksum validation. This operation records a download event.
The response is of type file.

