GET
/v1/accessReturns 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.
- statestringRequiredOne 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/accessExample
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