Add organization
const url = 'https://example.com/api/v1/identity/admin/organizations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"createdAt":"2026-04-15T12:00:00Z","id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","organizationType":"Company","externalReference":"example","emailDomain":"example","webUrl":"example","address":"example","city":"example","country":"example","phoneNumber":"example","companyInfo":"example","parentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","members":[{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","subject":"example","email":"example","userType":"Consumer","lastSignedInAt":"2026-04-15T12:00:00Z","createdAt":"2026-04-15T12:00:00Z","roles":["example"],"userProfile":{"firstName":"example","lastName":"example","displayName":"example","country":"example"},"organizations":[],"allowResourcePassword":true,"isApproved":true,"isBlocked":true,"isDeleted":true}],"contacts":[{"type":"example","firstName":"example","lastName":"example","email":"example","phoneNumber":"example","companyRole":"example"}],"billingInfo":{"legalName":"example","billingEmail":"example","billingPhoneNumber":"example","billingReference":"example","billingAddressLine1":"example","billingAddressLine2":"example","billingPostalCode":"example","billingCity":"example","billingStateOrProvince":"example","billingCountryCode":"example","companyNumber":"example","vatNumber":"example","taxIdScheme":"example","taxId":"example","taxExemptionStatus":"None","taxExemptionReference":"example","billingCurrency":"example"},"rowVersion":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/identity/admin/organizations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "createdAt": "2026-04-15T12:00:00Z", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "organizationType": "Company", "externalReference": "example", "emailDomain": "example", "webUrl": "example", "address": "example", "city": "example", "country": "example", "phoneNumber": "example", "companyInfo": "example", "parentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "members": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "subject": "example", "email": "example", "userType": "Consumer", "lastSignedInAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z", "roles": [ "example" ], "userProfile": { "firstName": "example", "lastName": "example", "displayName": "example", "country": "example" }, "organizations": [], "allowResourcePassword": true, "isApproved": true, "isBlocked": true, "isDeleted": true } ], "contacts": [ { "type": "example", "firstName": "example", "lastName": "example", "email": "example", "phoneNumber": "example", "companyRole": "example" } ], "billingInfo": { "legalName": "example", "billingEmail": "example", "billingPhoneNumber": "example", "billingReference": "example", "billingAddressLine1": "example", "billingAddressLine2": "example", "billingPostalCode": "example", "billingCity": "example", "billingStateOrProvince": "example", "billingCountryCode": "example", "companyNumber": "example", "vatNumber": "example", "taxIdScheme": "example", "taxId": "example", "taxExemptionStatus": "None", "taxExemptionReference": "example", "billingCurrency": "example" }, "rowVersion": 1 }'Adds a customer organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”An id of your own for the call. The answer returns it in the same header, and the server log carries it; when you send none, the server makes one.
A key of your own that makes a retry safe: a call repeated with the same key and the same body answers the first call’s result instead of running again. Send one key per call, and reuse it only to retry that call.
Request Bodyrequired
Section titled “Request Bodyrequired”A customer organization in the account directory, with its profile, contacts, billing info, members, and optional parent organization.
object
When the organization was created.
What kind of organization this is.
A user in the account directory: identity fields, access flags, profile, and preferences.
object
The identity provider’s subject claim for this user (for devices, the machine token’s subject).
The kind of principal a directory user represents. Device rows are machine principals (client-credentials identities enrolled for licensing): their Subject is the machine token’s subject, they need no email and never log in interactively.
When the user last signed in; null when the user never has.
When the user was created.
The user’s role names, in lower case.
A user’s display profile (name fields and country).
object
A contact person of an organization (e.g. billing or technical contact).
object
Billing details of an organization: the registered legal entity, its structured invoice address, tax registration, and the currency it is invoiced in. This is customer master data for handoff to an external billing provider — no invoice is issued from here.
object
Registered entity name, which often differs from the trading name in Name.
ISO 3166-1 alpha-2. Normalized server-side; input that resolves to no country is stored as null.
EU VAT registration number. Tax identity elsewhere goes in TaxIdScheme/TaxId.
Open vocabulary, uppercased server-side: “EIN”, “ABN”, “GSTIN”, “CNPJ”, …
Exemption certificate identifier backing a non-None TaxExemptionStatus.
ISO 4217, 3 letters — the currency the customer is invoiced in.
The stored row’s version. Send it back on an update or patch to have the edit refused with 409 Conflict when someone else changed the organization first. Null when the read did not carry it.
Responses
Section titled “Responses”Created
A customer organization in the account directory, with its profile, contacts, billing info, members, and optional parent organization.
object
When the organization was created.
What kind of organization this is.
A user in the account directory: identity fields, access flags, profile, and preferences.
object
The identity provider’s subject claim for this user (for devices, the machine token’s subject).
The kind of principal a directory user represents. Device rows are machine principals (client-credentials identities enrolled for licensing): their Subject is the machine token’s subject, they need no email and never log in interactively.
When the user last signed in; null when the user never has.
When the user was created.
The user’s role names, in lower case.
A user’s display profile (name fields and country).
object
A contact person of an organization (e.g. billing or technical contact).
object
Billing details of an organization: the registered legal entity, its structured invoice address, tax registration, and the currency it is invoiced in. This is customer master data for handoff to an external billing provider — no invoice is issued from here.
object
Registered entity name, which often differs from the trading name in Name.
ISO 3166-1 alpha-2. Normalized server-side; input that resolves to no country is stored as null.
EU VAT registration number. Tax identity elsewhere goes in TaxIdScheme/TaxId.
Open vocabulary, uppercased server-side: “EIN”, “ABN”, “GSTIN”, “CNPJ”, …
Exemption certificate identifier backing a non-None TaxExemptionStatus.
ISO 4217, 3 letters — the currency the customer is invoiced in.
The stored row’s version. Send it back on an update or patch to have the edit refused with 409 Conflict when someone else changed the organization first. Null when the read did not carry it.
Example
{ "organizationType": "Company", "members": [ { "userType": "Consumer" } ], "billingInfo": { "taxExemptionStatus": "None" }}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The URL of the resource the call created: its item URL.
The request is not valid: a body or a parameter that fails validation, or a page token that is not valid. The errors member names the fields.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The request carries no valid access token (auth.required).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
How to authenticate: the bearer challenge.
The caller may not make this call. The code and requires members say why: a missing scope, or a plan that does not include it.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
A call with the same Idempotency-Key is still running. Send the call again once it has finished.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The body is not sent as application/json (request.unsupported).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The Idempotency-Key was used before with a different request body (operation.idempotency-key-reused).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Too many requests. Wait the seconds in Retry-After, then send the call again (service.too-many-requests).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The seconds to wait before the call is sent again.
The calls the limiter allows in its window, when it knows.
The calls left in the window, when the limiter knows.
The seconds until the window resets, when the limiter knows.
Names the limiter that shed the call.