---
title: "Create Organization"
method: POST
path: "/v1/organizations/"
tags: ["Organizations"]
deprecated: true
---

# Create Organization

`POST /v1/organizations/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/organizations/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `organization:admin`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/organizations/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Create an organization owned by the token's user (on-prem only).

This endpoint is deprecated and has moved to `/api/v1/instance/organizations/`.

## Request body

- OrganizationCreate
  - `organization_name` string, required
  - `creation_intent` 'free' | 'team'
  - `organization_display_name` string
  - `github_handle` string
  - `location` string
  - `avatar` string
  - `links` OrganizationLink[]
    - `url` string, required
    - `icon` string, required
    - `name` string, required
  - `description` string

## Response `201`

Successful Response

- OrganizationReadV1
  - `id` string, uuid, required
  - `organization_name` string, required
  - `subscription_plan` 'personal' | 'team' | 'growth' | 'enterprise_cloud' | 'non_stripe' | 'enterprise' | 'internal', required
  - `has_admin_panel` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `organization_display_name` string, nullable, required
  - `github_handle` string, nullable, required
  - `location` string, nullable, required
  - `avatar` string, nullable, required
  - `links` OrganizationLink[], nullable, required
    - `url` string, required
    - `icon` string, required
    - `name` string, required
  - `description` string, nullable, required
  - `spending_cap` integer, nullable, required
  - `spending_cap_reached_at` string, date-time, nullable, required
  - `planless_grace_period_ends_at` string, date-time, nullable, required
  - `gateway_enabled` boolean, required
  - `ai_enabled` boolean, required
  - `ai_training_enabled` boolean, required

## Other responses

- `422`: Validation Error
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
