Skip to content

API reference

Show the workspace's plan

Other routes API

GET/v1/plan

Returns the workspace’s plan in force and the features it includes, each by its id and its German and English name. A plan is changed by Certinvo, not through the API.

Response

A 200 answer carries these fields.

  • planobjectRequired
    Show 2 child fields
    • codestringRequired
    • versionintegerRequired
  • featuresarray of objectRequired
    Show 3 child fields
    • idstringRequired

      For example validation, conversion or gobd-archive.

    • destringRequired
    • enstringRequired
  • retentionobjectRequired
    Show 2 child fields
    • kindstringRequired
      One of durable, temporary.
    • daysinteger or nullRequired
  • limitsobjectRequired
    Show 3 child fields
    • maximumItemsintegerRequired
    • maximumDecodedBytesintegerRequired
    • documentLimitinteger or nullRequired

Status codes

Status Meaning
200 The plan.
401 No usable credential was sent (invalid_credentials).
403 This workspace has no plan in force (workspace_plan_unavailable), or it is closed (workspace_closed).
503 This deployment has no database (no_database).
GET/v1/plan
Example
curl https://api.certinvo.com/v1/plan \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/plan`, {
  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/plan",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "plan": {
    "code": "string",
    "version": 0
  },
  "features": [
    {
      "id": "string",
      "de": "string",
      "en": "string"
    }
  ],
  "retention": {
    "kind": "durable",
    "days": 0
  },
  "limits": {
    "maximumItems": 0,
    "maximumDecodedBytes": 0,
    "documentLimit": 0
  }
}
Success response
GET
/v1/plan
Show the workspace's plan
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/plan" \
  -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