POST
/v1/signupThe console calls this after every sign-in, with the person’s session token. A person the identity provider has verified the email of, and who has no workspace yet, gets one: a standard plan, one live and one sandbox company, and them as its owner (201). A person who already has one gets its id and nothing changes (200), so calling it again is safe. An email address that already belongs to somebody is refused and never linked to the new sign-in. An API key cannot call this.
Response
A 200 answer carries these fields.
- workspacestring (uuid) or nullRequired
The person's workspace. Null only when they already have a login and belong to no workspace.
- createdbooleanRequired
True when this call made the workspace.
Status codes
| Status | Meaning |
|---|---|
200 |
The person already has a workspace; nothing was written. workspace is null when they belong to none. |
201 |
The workspace was made, with its two companies, and the person is its owner. |
401 |
No session token, or one the identity provider did not sign (session_required). |
403 |
The token carries no email, or one the identity provider has not verified (email_not_verified). Nothing was written. |
409 |
The email address already belongs to a Certinvo login (email_taken). Nothing was written or linked. |
503 |
This server has no sign-in configured (sign_in_unavailable). |
POST
/v1/signupExample
curl -X POST https://api.certinvo.com/v1/signup \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/signup`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.post(
"https://api.certinvo.com/v1/signup",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/json
{
"workspace": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"created": true
}Success response