Skip to main content
POST
/
database
/
v1
/
projects
curl -X POST "https://api.case.dev/database/v1/projects" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "<string>" }'
{
  "id": "proj_abc123xyz",
  "name": "litigation-docs-db",
  "description": "Production database for litigation document management",
  "region": "aws-us-east-1",
  "pgVersion": 17,
  "status": "active",
  "defaultBranch": {
    "id": "branch_main_456",
    "name": "main"
  },
  "createdAt": "2025-01-15T10:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
name
string
required

Project name (letters, numbers, hyphens, underscores only)

Pattern: ^[a-zA-Z0-9_-]+$
description
string

Optional project description

region
enum<string>
default:aws-us-east-1

AWS region for database deployment

Available options:
aws-us-east-1,
aws-us-east-2,
aws-us-west-2,
aws-eu-central-1,
aws-eu-west-1,
aws-eu-west-2,
aws-ap-southeast-1,
aws-ap-southeast-2

Response

Database project created successfully

id
string
required

Project ID

name
string
required

Project name

region
string
required

AWS region

pgVersion
integer
required

PostgreSQL major version

status
enum<string>
required

Project status

Available options:
active,
suspended,
deleted
defaultBranch
object
required

Default 'main' branch details

createdAt
string<date-time>
required

Project creation timestamp

description
string | null

Project description