---
title: "Provision the organization default Factory Environment if none exists"
method: POST
path: "/api/v0/environments/default"
tags: ["Environments"]
---

# Provision the organization default Factory Environment if none exists

`POST /api/v0/environments/default`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/environments/default`
- Auth: HTTP bearer

## Headers

- `X-Factory-Org-Id` string

## Response `204`

Response for status 204

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-14** `9fb2e1b1ec61`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
- **2026-11-12** `b6a46c415079`: 1 breaking, 19 info
  - removed the media type `application/json` for the response with the status `204`
  - added the new optional `header` request parameter `X-Factory-Org-Id`
  - added the non-success response with the status `402`
  - added the non-success response with the status `451`
  - …16 more
- **2026-10-13** `dd43fbb08a00`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/environments/default/post.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
