---
title: "Create new organization"
method: POST
path: "/api/organizations"
tags: ["Organizations"]
---

# Create new organization

`POST /api/organizations`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/organizations`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/organizations/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new organization with the specified configuration and settings. The authenticated user will be automatically added as an owner of the newly created organization and can then invite other users and configure the organization. If the creator is a service account, the response will include the service account's token for the newly created organization, enabling automated workflows to immediately access the new organization without additional token retrieval steps.

## Request body

- object
  - `identifier` string
  - `name` string, required: Only alphanumeric characters (A-Z, a-z, 0-9), spaces, and underscores are allowed
  - `org_type` string
  - `service_account` string, nullable: Optional service account email to add to the organization When specified, only this service account will be added (not the API caller)

## Response `200`

Success

- object
  - `identifier` string
  - `name` string, required: Only alphanumeric characters (A-Z, a-z, 0-9), spaces, and underscores are allowed
  - `org_type` string

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
