Organizations
Create organization
This machine/bootstrap route is available only when private preview enforcement is disabled. People requesting private preview access should use the dashboard application flow instead.
POST
/
v1
/
tenants
Create organization
curl --request POST \
--url https://api.getmillwork.dev/v1/tenants \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({display_name: '<string>'})
};
fetch('https://api.getmillwork.dev/v1/tenants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"api_key": {
"api_key_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"display_name": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"key": "<string>",
"key_prefix": "<string>",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"status": "active"
},
"display_name": "<string>",
"tenant_id": "<string>"
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"retry_after_s": 123
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"retry_after_s": 123
}⌘I
Create organization
curl --request POST \
--url https://api.getmillwork.dev/v1/tenants \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({display_name: '<string>'})
};
fetch('https://api.getmillwork.dev/v1/tenants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"api_key": {
"api_key_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"display_name": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"key": "<string>",
"key_prefix": "<string>",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"status": "active"
},
"display_name": "<string>",
"tenant_id": "<string>"
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"retry_after_s": 123
}{
"instance": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": 123,
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"retry_after_s": 123
}