Skip to content

API reference

Read whether the workspace is closed

Other routes API

GET/v1/workspace/closure

Says whether an owner closed the workspace and, if so, the day its data is deleted. Only a signed-in person can read it. An API key is refused with 401 session_required.

Response

A 200 answer carries these fields.

  • closedbooleanRequired
  • closedAtstring (date-time)

    When an owner closed it. Only when closed.

  • deletesAtstring (date-time)

    The first day its data may be deleted, 30 days after closing. An invoice of a live company inside its eight years of retention that was not downloaded in the whole-workspace download or its evidence bundle keeps the workspace until those years end. Only when closed.

Status codes

Status Meaning
200 Open, or closed with the day it is deleted.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
501 This deployment has no database (no_database). Sending the same request again will not help.
GET/v1/workspace/closure
Example
curl https://api.certinvo.com/v1/workspace/closure \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/workspace/closure`, {
  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/closure",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "closed": true,
  "closedAt": "2026-09-17T09:30:00Z",
  "deletesAt": "2026-09-17T09:30:00Z"
}
Success response
GET
/v1/workspace/closure
Read whether the workspace is closed
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/closure" \
  -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