curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/register' \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"email": "ada.lovelace@example.com",
"plan": "hobby"
}'
{
"organization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"slug": "acme-outdoors",
"plan": "string",
"trial_credits_remaining": 1
},
"user": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email": "ada.lovelace@example.com",
"role": "string"
},
"api_key": null,
"token": "YOUR_API_KEY",
"email_verification_required": true
}
Register a new organization
Organization registered; verify email before creating a usable API key. Registration does not provision a runtime.
POST
/
api
/
v1
/
register
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/register' \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"email": "ada.lovelace@example.com",
"plan": "hobby"
}'
{
"organization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"slug": "acme-outdoors",
"plan": "string",
"trial_credits_remaining": 1
},
"user": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email": "ada.lovelace@example.com",
"role": "string"
},
"api_key": null,
"token": "YOUR_API_KEY",
"email_verification_required": true
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Request body
RegisterOrganizationRequest
string
required
Minimum length:
1. Maximum length: 100.string (email)
required
string
Allowed values:
'hobby', 'pro', 'team', 'enterprise'. Default: 'hobby'.Response
object
object
required
null
required
No usable key is returned before email verification.
string
required
Session token (also set as a cookie).
boolean
required
Allowed values:
true.Status codes
| Code | Meaning |
|---|---|
201 | Organization registered; verify email before creating a usable API key. Registration does not provision a runtime. |
400 | Invalid request |
409 | Organization already exists |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.sandbox.stateset.app/api/v1/register' \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"email": "ada.lovelace@example.com",
"plan": "hobby"
}'
{
"organization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"slug": "acme-outdoors",
"plan": "string",
"trial_credits_remaining": 1
},
"user": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email": "ada.lovelace@example.com",
"role": "string"
},
"api_key": null,
"token": "YOUR_API_KEY",
"email_verification_required": true
}
Last modified on October 20, 2026