POST
/v1/companiesCreates a company for one of your customers, in the key’s environment. Call it when a customer signs up. Requires a workspace key.
Safe retries
Send reference, your own id for that customer, to make retries safe.
- The same reference, name and country again returns
200with the existing company. - The same reference with a different name or country returns
409 company_reference_conflictand changes nothing. - Without a reference, every call creates a new company.
country defaults to DE. You can use the new id right away in the Certinvo-Company header.
The new company opens in the console without the setup questions: your staff can switch to it right away.
Request body
application/json, required
- namestringRequired
- referencestring
- countrystring
Response
A 200 answer carries these 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
Status codes
| Status | Meaning |
|---|---|
200 |
A retry. The body is the company this reference already names. |
201 |
The company was created. |
400 |
The body was refused (invalid_company, the message names the field), or a company was named in the request (company_not_expected). Nothing was written. |
401 |
No usable credential was sent (invalid_credentials), or the credential is not a workspace key (workspace_key_required). |
409 |
The reference already names a company with a different name or country (company_reference_conflict). Nothing was changed. |
POST
/v1/companiesExample
curl -X POST https://api.certinvo.com/v1/companies \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const response = await fetch(`https://api.certinvo.com/v1/companies`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
'Content-Type': 'application/json',
},
body: await readFile('body.json'),
})
console.log(response.status, await response.json())import os
import requests
response = requests.post(
"https://api.certinvo.com/v1/companies",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text)200
application/json
{
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"name": "string",
"environment": "live",
"country": "string",
"reference": "string",
"createdAt": "2026-09-17T09:30:00Z"
}Success response