Skip to main content
PARIXDocs
Databases

Create Database

POST
/api/v1/databases

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:5173/api/v1/databases" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "success": true,  "message": "string",  "billing": {    "checkoutUrl": "string",    "code": "string",    "message": "string"  },  "database": {    "id": "string",    "name": "string",    "organizationId": "string",    "createdAt": "string",    "updatedAt": "string"  },  "profile": {    "id": "string",    "status": "string"  },  "job": null,  "provisioning": {    "message": "string",    "status": "string"  }}
{  "type": "about:blank",  "title": "Not Found",  "status": 404,  "detail": "The requested file was not found",  "instance": "/api/v1/files/123",  "errors": [    "string"  ],  "fieldErrors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}
{  "type": "about:blank",  "title": "Not Found",  "status": 404,  "detail": "The requested file was not found",  "instance": "/api/v1/files/123",  "errors": [    "string"  ],  "fieldErrors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}
{  "type": "about:blank",  "title": "Not Found",  "status": 404,  "detail": "The requested file was not found",  "instance": "/api/v1/files/123",  "errors": [    "string"  ],  "fieldErrors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}
{  "type": "about:blank",  "title": "Not Found",  "status": 404,  "detail": "The requested file was not found",  "instance": "/api/v1/files/123",  "errors": [    "string"  ],  "fieldErrors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}