Skip to content

API reference

Download every invoice of the workspace

Other routes API

GET/v1/workspace/export

Returns 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/export
Example
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
GET
/v1/workspace/export
Download every invoice of the workspace
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/workspace/export" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close