/v1/session/companiesReturns every company the signed-in person reaches, live and sandbox, in every workspace they belong to: all the companies of a workspace, or only the companies they were given there. Each company names its workspace.
Name one of them with the Certinvo-Company header to work in it.
Only a signed-in person can read it. An API key is refused with 401 session_required. A key lists its companies with GET /v1/companies.
Response
A 200 answer carries these fields.
- companiesarray of objectRequired
Show 7 child fields
- idstring (uuid)Required
- namestringRequired
- environmentstringRequiredOne of
live,sandbox. - countrystringRequired
- referencestring or nullRequired
The platform's own id for this customer, or null.
- createdAtstring (date-time)Required
- workspaceIdstring (uuid)Required
The workspace the company belongs to.
- currentstring (uuid)Required
The company this request was answered for: the one
Certinvo-Companynamed, else the person's default. The console binds a page to it. - workspacesarray of objectRequired
Every workspace the person belongs to, oldest membership first.
Show 3 child fields
- idstring (uuid)Required
- namestringRequired
- canAddCompanybooleanRequired
Whether this person may add a company to this workspace: an owner, or an admin with access to every company.
Status codes
| Status | Meaning |
|---|---|
200 |
Every company this person reaches, oldest first. |
401 |
No usable credential was sent (invalid_credentials), or an API key was used (session_required). |
404 |
The Certinvo-Company header named a company this person does not reach (unknown_company). |
501 |
This deployment has no database, so it keeps no companies (no_database). Sending the same request again will not help. |
/v1/session/companiescurl https://api.certinvo.com/v1/session/companies \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/session/companies`, {
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/session/companies",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"companies": [
{
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"name": "string",
"environment": "live",
"country": "string",
"reference": "string",
"createdAt": "2026-09-17T09:30:00Z",
"workspaceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
}
],
"current": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"workspaces": [
{
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"name": "string",
"canAddCompany": true
}
]
}