GET
/v1/workspace/exportReturns one ZIP with every invoice of the workspace, live and sandbox. Each invoice has its own folder, <environment>/<received|issued>/<issue date>_<number>_<id>/, holding what its evidence download holds: manifest.json, files/ and history.json. A file a single download holds back is left out and named in its manifest. index.csv lists every invoice and its folder. A closed workspace still downloads. Each invoice whose file left is recorded in its history. Only an owner or an admin, signed in, can download.
Status codes
| Status | Meaning |
|---|---|
200 |
Every invoice, as a ZIP. |
401 |
No usable credential was sent (invalid_credentials), or an API key was used (session_required). |
403 |
The person is not an owner or an admin of this workspace (role_required). |
501 |
This deployment has no database (no_database). Sending the same request again will not help. |
GET
/v1/workspace/exportExample
curl https://api.certinvo.com/v1/workspace/export \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/workspace/export`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/workspace/export",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/zip
The body is the file itself (application/zip).
Success response