Projects

Create project with a postgres database

Creates a new project with a postgres database.

POST/v1/projects
AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

Request Body

application/json

createDatabase?boolean
Defaulttrue
name?string
region?string
Default"us-east-1"
Value in"us-east-1" | "us-west-1" | "eu-west-3" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1"

Response Body

application/json

application/json

curl -X POST "https://api.prisma.io/v1/projects" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "string",
    "type": "project",
    "name": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "workspace": {
      "id": "string",
      "name": "string"
    },
    "database": {
      "id": "string",
      "type": "database",
      "name": "string",
      "status": "provisioning",
      "createdAt": "2019-08-24T14:15:22Z",
      "isDefault": true,
      "region": {
        "id": "string",
        "name": "string"
      },
      "apiKeys": [
        {
          "id": "string",
          "type": "connection",
          "name": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "connectionString": "string",
          "directConnection": {
            "host": "string",
            "pass": "string",
            "user": "string"
          }
        }
      ],
      "connectionString": "string",
      "directConnection": {
        "host": "string",
        "pass": "string",
        "user": "string"
      }
    }
  }
}