--- id: usage title: Usage toc_max_heading_level: 3 --- import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' ## Lists all organizations {#lists-all-organizations} ``` GET https://api.supabase.com/v1/organizations ``` ### Parameters ### Responses ```json { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": ["id", "name"] } } } ``` Unexpected error listing organizations
## Creates an organization {#creates-an-organization} ``` POST https://api.supabase.com/v1/organizations ``` ### Body ```json { "schema": { "type": "object", "properties": { "name": { "type": "string" } }, "required": ["name"] } } ``` ### Responses ```json { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": ["id", "name"] } } ``` Unexpected error creating an organization
## Gets all projects that belong to the authenticated user {#gets-all-projects-that-belong-to-the-authenticated-user} ``` GET https://api.supabase.com/v1/projects ``` ### Responses ```json { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "organization_id": { "type": "string" }, "name": { "type": "string" }, "region": { "type": "string" }, "created_at": { "type": "string" } }, "required": ["id", "organization_id", "name", "region", "created_at"] } } } ```
## Creates a project {#creates-a-project} ``` POST https://api.supabase.com/v1/projects ``` ### Body ```json { "schema": { "type": "object", "properties": { "db_pass": { "type": "string" }, "name": { "type": "string" }, "organization_id": { "type": "string" }, "plan": { "type": "string", "enum": ["free", "pro"] }, "region": { "type": "string", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "ap-northeast-2", "ap-southeast-2", "eu-west-1", "eu-west-2", "eu-central-1", "ca-central-1", "ap-south-1", "sa-east-1" ] } }, "required": ["db_pass", "name", "organization_id", "plan", "region"] } } ``` ### Responses ```json { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "organization_id": { "type": "string" }, "name": { "type": "string" }, "region": { "type": "string" }, "created_at": { "type": "string" } }, "required": ["id", "organization_id", "name", "region", "created_at"] } } ```