Skip to content

API reference

Create a company

Companies and keys API

POST/v1/companies

Creates 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 200 with the existing company.
  • The same reference with a different name or country returns 409 company_reference_conflict and 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
  • environmentstringRequired
    One 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/companies
Example
curl -X POST https://api.certinvo.com/v1/companies \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { 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
POST
/v1/companies
Create a company
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X POST "https://api.certinvo.com/v1/companies" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "reference": "string",
  "country": "string"
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close