Dokploy libsql API

The libsql API from Dokploy — 14 operation(s) for libsql.

OpenAPI Specification

dokploy-libsql-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Dokploy admin libsql API
  description: Complete API documentation for Dokploy - Deploy applications, manage databases, and orchestrate your infrastructure. This API allows you to programmatically manage all aspects of your Dokploy instance.
  version: 1.0.0
  contact:
    name: Dokploy Team
    url: https://dokploy.com
  license:
    name: Apache 2.0
    url: https://github.com/dokploy/dokploy/blob/canary/LICENSE
servers:
- url: https://your-dokploy-instance.com/api
security:
- apiKey: []
tags:
- name: libsql
paths:
  /libsql.create:
    post:
      operationId: libsql-create
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                appName:
                  type: string
                  minLength: 1
                dockerImage:
                  default: ghcr.io/tursodatabase/libsql-server:v0.24.32
                  type: string
                environmentId:
                  type: string
                description:
                  anyOf:
                  - type: string
                  - type: 'null'
                databaseUser:
                  type: string
                  minLength: 1
                databasePassword:
                  type: string
                  pattern: ^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~`]*$
                sqldNode:
                  type: string
                  enum:
                  - primary
                  - replica
                sqldPrimaryUrl:
                  anyOf:
                  - anyOf:
                    - type: string
                    - type: 'null'
                  - type: 'null'
                enableNamespaces:
                  default: false
                  type: boolean
                serverId:
                  anyOf:
                  - type: string
                  - type: 'null'
              required:
              - name
              - appName
              - dockerImage
              - environmentId
              - description
              - databaseUser
              - databasePassword
              - sqldNode
              - sqldPrimaryUrl
              - enableNamespaces
              - serverId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.one:
    get:
      operationId: libsql-one
      tags:
      - libsql
      security:
      - Authorization: []
      parameters:
      - in: query
        name: libsqlId
        schema:
          type: string
          minLength: 1
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.NOT_FOUND'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.start:
    post:
      operationId: libsql-start
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                  minLength: 1
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.stop:
    post:
      operationId: libsql-stop
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                  minLength: 1
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.saveExternalPorts:
    post:
      operationId: libsql-saveExternalPorts
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                externalPort:
                  anyOf:
                  - type: number
                  - type: 'null'
                externalGRPCPort:
                  anyOf:
                  - type: number
                  - type: 'null'
                externalAdminPort:
                  anyOf:
                  - type: number
                  - type: 'null'
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.deploy:
    post:
      operationId: libsql-deploy
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.changeStatus:
    post:
      operationId: libsql-changeStatus
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                applicationStatus:
                  type: string
                  enum:
                  - idle
                  - running
                  - done
                  - error
              required:
              - libsqlId
              - applicationStatus
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.remove:
    post:
      operationId: libsql-remove
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                  minLength: 1
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.saveEnvironment:
    post:
      operationId: libsql-saveEnvironment
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                env:
                  anyOf:
                  - type: string
                  - type: 'null'
              required:
              - libsqlId
              - env
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.reload:
    post:
      operationId: libsql-reload
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                appName:
                  type: string
                  minLength: 1
              required:
              - libsqlId
              - appName
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.update:
    post:
      operationId: libsql-update
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                  minLength: 1
                name:
                  type: string
                  minLength: 1
                appName:
                  type: string
                  minLength: 1
                description:
                  anyOf:
                  - type: string
                  - type: 'null'
                databaseUser:
                  type: string
                  minLength: 1
                databasePassword:
                  type: string
                  pattern: ^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~`]*$
                sqldNode:
                  type: string
                  enum:
                  - primary
                  - replica
                sqldPrimaryUrl:
                  anyOf:
                  - anyOf:
                    - type: string
                    - type: 'null'
                  - type: 'null'
                enableNamespaces:
                  default: false
                  type: boolean
                dockerImage:
                  default: ghcr.io/tursodatabase/libsql-server:v0.24.32
                  type: string
                command:
                  anyOf:
                  - type: string
                  - type: 'null'
                env:
                  anyOf:
                  - type: string
                  - type: 'null'
                memoryReservation:
                  anyOf:
                  - type: string
                  - type: 'null'
                memoryLimit:
                  anyOf:
                  - type: string
                  - type: 'null'
                cpuReservation:
                  anyOf:
                  - type: string
                  - type: 'null'
                cpuLimit:
                  anyOf:
                  - type: string
                  - type: 'null'
                externalPort:
                  anyOf:
                  - type: number
                  - type: 'null'
                externalGRPCPort:
                  anyOf:
                  - type: number
                  - type: 'null'
                externalAdminPort:
                  anyOf:
                  - type: number
                  - type: 'null'
                applicationStatus:
                  type: string
                  enum:
                  - idle
                  - running
                  - done
                  - error
                healthCheckSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Test:
                          type: array
                          items:
                            type: string
                        Interval:
                          type: number
                        Timeout:
                          type: number
                        StartPeriod:
                          type: number
                        Retries:
                          type: number
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                restartPolicySwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Condition:
                          type: string
                        Delay:
                          type: number
                        MaxAttempts:
                          type: number
                        Window:
                          type: number
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                placementSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Constraints:
                          type: array
                          items:
                            type: string
                        Preferences:
                          type: array
                          items:
                            type: object
                            properties:
                              Spread:
                                type: object
                                properties:
                                  SpreadDescriptor:
                                    type: string
                                required:
                                - SpreadDescriptor
                            required:
                            - Spread
                            additionalProperties: false
                        MaxReplicas:
                          type: number
                        Platforms:
                          type: array
                          items:
                            type: object
                            properties:
                              Architecture:
                                type: string
                              OS:
                                type: string
                            required:
                            - Architecture
                            - OS
                            additionalProperties: false
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                updateConfigSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Parallelism:
                          type: number
                        Delay:
                          type: number
                        FailureAction:
                          type: string
                        Monitor:
                          type: number
                        MaxFailureRatio:
                          type: number
                        Order:
                          type: string
                      required:
                      - Parallelism
                      - Order
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                rollbackConfigSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Parallelism:
                          type: number
                        Delay:
                          type: number
                        FailureAction:
                          type: string
                        Monitor:
                          type: number
                        MaxFailureRatio:
                          type: number
                        Order:
                          type: string
                      required:
                      - Parallelism
                      - Order
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                modeSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Replicated:
                          type: object
                          properties:
                            Replicas:
                              type: number
                          additionalProperties: false
                        Global:
                          type: object
                          properties: {}
                        ReplicatedJob:
                          type: object
                          properties:
                            MaxConcurrent:
                              type: number
                            TotalCompletions:
                              type: number
                          additionalProperties: false
                        GlobalJob:
                          type: object
                          properties: {}
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                labelsSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: string
                    - type: 'null'
                  - type: 'null'
                networkSwarm:
                  anyOf:
                  - anyOf:
                    - type: array
                      items:
                        type: object
                        properties:
                          Target:
                            type: string
                          Aliases:
                            type: array
                            items:
                              type: string
                          DriverOpts:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type: string
                        additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                stopGracePeriodSwarm:
                  anyOf:
                  - anyOf:
                    - type: number
                    - type: 'null'
                  - type: 'null'
                endpointSpecSwarm:
                  anyOf:
                  - anyOf:
                    - type: object
                      properties:
                        Mode:
                          type: string
                        Ports:
                          type: array
                          items:
                            type: object
                            properties:
                              Protocol:
                                type: string
                              TargetPort:
                                type: number
                              PublishedPort:
                                type: number
                              PublishMode:
                                type: string
                            additionalProperties: false
                      additionalProperties: false
                    - type: 'null'
                  - type: 'null'
                replicas:
                  type: number
                createdAt:
                  type: string
                environmentId:
                  type: string
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.move:
    post:
      operationId: libsql-move
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
                targetEnvironmentId:
                  type: string
              required:
              - libsqlId
              - targetEnvironmentId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.rebuild:
    post:
      operationId: libsql-rebuild
      tags:
      - libsql
      security:
      - Authorization: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                libsqlId:
                  type: string
              required:
              - libsqlId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: false
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Authorization not provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '403':
          description: Insufficient access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.FORBIDDEN'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /libsql.readLogs:
    get:
      operationId: libsql-readLogs
      tags:
      - libsql
      security:
      - Authorization: []
      parameters:
      - in: query
        name: libsqlId
        schema:
          type: string
        

# --- truncated at 32 KB (38 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/dokploy/refs/heads/main/openapi/dokploy-libsql-api-openapi.yml