> ## Documentation Index
> Fetch the complete documentation index at: https://docs-relytone.data.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Database

> Create a new database under the specified project



## OpenAPI

````yaml api/openapi.yaml post /projects/{id}/databases
openapi: 3.0.3
info:
  title: Relyt Console API
  description: >
    Relyt Console API provides organization management, project management,
    compute resource management, database management and other features.

    This is a modern API service based on Next.js, supporting OAuth2
    authentication and JWT tokens.
  version: 1.0.0
  contact:
    name: Relyt Team
    email: support@relyt.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://relytone.data.cloud/api/v1
    description: Production Environment
security:
  - OAuth2: []
  - BearerAuth: []
paths:
  /projects/{id}/databases:
    post:
      tags:
        - Project Resources
      summary: Create Database
      description: Create a new database under the specified project
      parameters:
        - name: id
          in: path
          required: true
          description: Project identifier
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Database name
                description:
                  type: string
                  description: Database description
      responses:
        '201':
          description: Database created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Database'
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized access
        '404':
          description: Project not found
      security:
        - BearerAuth: []
components:
  schemas:
    Database:
      type: object
      properties:
        id:
          type: string
          description: Database identifier
        name:
          type: string
          description: Database name
        description:
          type: string
          description: Database description
        status:
          type: string
          enum:
            - active
            - inactive
            - error
          description: Database status
        createdAt:
          type: string
          format: date-time
          description: Creation time
        updatedAt:
          type: string
          format: date-time
          description: Update time
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://relytone.data.cloud/api/auth/signin
          tokenUrl: https://relytone.data.cloud/api/auth/callback
          scopes:
            read: Read permissions
            write: Write permissions
            admin: Admin permissions
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````