Create Domain
Request Body
The hostname or domain name (e.g.,
example.com, api.example.com). Cannot have leading or trailing spaces.URL path for routing (e.g.,
/api, /v1). Defaults to /.Port number where your application listens. Must be between 1 and 65535.
Enable HTTPS for this domain. When true, you must specify a
certificateType.SSL certificate type. Required when
https is true.Name of the custom Traefik certificate resolver. Required when
certificateType is custom.ID of the application this domain belongs to. Required for application domains.
ID of the compose service this domain belongs to. Required for compose domains.
Name of the service within a compose file. Required for compose domains.
Type of domain being created.
ID of the preview deployment. Required when
domainType is preview.Internal path to rewrite requests to. Must start with
/ if specified. Useful for path-based routing.Strip the path prefix before forwarding to the service. Can only be enabled when a path other than
/ is specified.Update Domain
Request Body
ID of the domain to update.
The hostname or domain name.
URL path for routing.
Port number (1-65535).
Enable HTTPS.
SSL certificate type:
letsencrypt, none, or custom.Custom certificate resolver name.
Service name (for compose domains).
Domain type:
application, compose, or preview.Internal path for rewrites.
Strip path prefix before forwarding.
Get Domain
Query Parameters
ID of the domain to retrieve.
Response
Unique identifier for the domain.
The hostname or domain name.
URL path for routing.
Port number.
Whether HTTPS is enabled.
SSL certificate type.
Unique configuration key for Traefik.
Associated application ID.
Associated compose service ID.
ISO 8601 timestamp when the domain was created.
Get Domains by Application
Query Parameters
ID of the application.
Response
Returns an array of domain objects associated with the application.Get Domains by Compose
Query Parameters
ID of the compose service.
Delete Domain
Request Body
ID of the domain to delete.
Generate Traefik.me Domain
Automatically generate a*.traefik.me domain for testing without DNS configuration.
Request Body
Name of the application.
Optional server ID. If not provided, uses the default server.
Response
Returns a generated*.traefik.me domain that resolves to your server’s IP address.
Validate Domain
Check if a domain’s DNS is properly configured to point to your Dokploy instance.Request Body
Domain name to validate.
Expected IP address. If not provided, uses the server’s configured IP.