Skip to main content

Introduction

The Dokploy API provides programmatic access to all features available in the Dokploy platform. You can use the API to deploy applications, manage databases, configure servers, monitor resources, and orchestrate your entire infrastructure.

API Architecture

Dokploy uses tRPC (TypeScript Remote Procedure Call) for its API architecture. tRPC provides end-to-end type safety and excellent developer experience, particularly when working with TypeScript clients.

What is tRPC?

tRPC allows you to build fully type-safe APIs without schemas or code generation. The API definitions are written in TypeScript and automatically shared between the server and client, ensuring type safety across your entire stack.

Key Benefits

  • Type Safety: Full TypeScript type inference from server to client
  • No Code Generation: API types are automatically derived
  • Runtime Validation: Input validation using Zod schemas
  • Modern DX: Excellent developer experience with autocomplete and inline documentation

Base URL

All API requests should be made to your Dokploy instance:
Replace your-dokploy-instance.com with your actual Dokploy domain.

Endpoint Structure

Dokploy API endpoints follow the tRPC naming convention:
Components:
  • router: The service category (e.g., application, project, docker)
  • procedure: The specific action to perform (e.g., create, one, all, update)

Example Endpoints

Available Routers

Dokploy organizes its API into the following routers:

Request Types

Query Procedures (GET)

Used for retrieving data. Parameters are passed as query strings.

Mutation Procedures (POST)

Used for creating, updating, or deleting resources. Data is sent in the request body as JSON.

Response Format

All API responses return JSON data: Success Response:
Error Response:

HTTP Status Codes

Rate Limiting

Rate limiting policies depend on your Dokploy instance configuration. Check with your administrator for specific limits.

Next Steps

Authentication

Learn how to authenticate your API requests

Application API

Explore application management endpoints

Project API

Manage projects programmatically

Docker API

Control Docker containers and images