Skip to content

API reference

Get whether the workspace's console is open

Other routes API

GET/v1/access

Returns which of three states the workspace is in. company: a new workspace that has not given its company yet. review: it gave its company and waits for Certinvo to approve it. open: it has a plan, so the console opens. A new sign-up has no plan, and nothing is processed for it, until Certinvo approves it. Only a signed-in person can read it. An API key is refused with 401 session_required.

Response

A 200 answer carries these fields.

  • statestringRequired
    One of profile, review, open.

Status codes

Status Meaning
200 The workspace’s state.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
501 This deployment has no database, so it keeps no company (no_database). Sending the same request again will not help.
GET/v1/access
Example
curl https://api.certinvo.com/v1/access \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/access`, {
  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/access",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "state": "profile"
}
Success response
GET
/v1/access
Get whether the workspace's console is open
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/access" \
  -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