---
title: "Applied from Spala Step Script."
method: POST
path: "/api/projects"
tags: ["projects"]
---

# Applied from Spala Step Script.

`POST /api/projects`

## Request

- Base URL: `https://api.spala.ai/api`
- URL: `https://api.spala.ai/api/api/projects`
- Auth: HTTP bearer

## Request body

- object
  - `project_name` string, required
  - `organization_id` string, required
  - `staging_database_ownership` string
  - `template` string
  - `template_theme` unknown

## Response `200`

Successful response

- EnvironmentDatabaseAttachments
  - `id` integer
  - `database_name` string
  - `database_role` 'staging' | 'production', required
  - `display_host` string
  - `environment_id` string, required: Foreign key referencing project_environments
  - `is_active` boolean, required
  - `organization_id` string, required: Foreign key referencing organizations
  - `ownership` 'spala_managed' | 'customer_managed', required
  - `project_id` string, required: Foreign key referencing projects
  - `provider` 'postgres', required
  - `quota_bytes` number
  - `status` 'pending' | 'ready' | 'migrating' | 'failed' | 'detached', required

## Other responses

- `401`: Unauthorized - authentication required

---

[API](https://skmtc.dev/spala/apis/admin.md) · [All operations](https://skmtc.dev/spala/apis/admin/llms.txt) · [OpenAPI document](https://skmtc.dev/spala/apis/admin/revisions/723cc50571ee?raw)
