Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/add_company |
| Handler | OperatelyWeb.Api.Mutations.AddCompany |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
company_name | string | No | Yes | - |
title | string | No | Yes | - |
is_demo | boolean | No | Yes | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
company | company object | No | Yes |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/add_company" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"company_name":"value", "is_demo":true, "title":"value"}'
Response Example#
{
"company": {
"admins": [
"<person>"
],
"company_space_id": "value",
"enabled_experimental_features": [
"value"
],
"general_space": "<space>",
"id": "value",
"member_count": 123,
"mission": "value",
"name": "value",
"owners": [
"<person>"
],
"people": [
"<person>"
],
"permissions": "<company_permissions>",
"setup_completed": true,
"trusted_email_domains": [
"value"
]
}
}