API operation · certificates group
POST
/domains/{name}/certificate
First published 3 Oct 2026
0.1.0Unchanged since publicationRequest a TLS certificate for a domain
Who may call it
AdministratorResellerCustomer
Token scope, any of
certificatesallAnswers202 Accepted
Queues a cert-issue job to request the certificate from the certificate authority. The 202 response returns the queued job in job.
If supplied, challenge must be auto, http, or dns. An invalid challenge returns 400.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredchallengestring, one of auto, http, dnsExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/domains/example.com/certificate" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"challenge": "auto"
}'Response ·
202 Accepted{
"job": {
"created_at": "2026-09-09T10:15:00Z",
"created_by": 1,
"created_by_name": "text",
"dismissed_at": "text",
"finished_at": "2026-09-09T10:15:04Z",
"id": 1,
"lane": "short",
"log": "",
"params": {},
"progress": 100,
"result": {},
"started_at": "2026-09-09T10:15:01Z",
"status": "queued",
"type": "rebuild",
"usual_seconds": 1
}
}Errors
9 errors, each a status and a sentence400A new job is queued or running400Invalid <what>: 400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Unknown job type400Username '<value>' is reserved400challenge must be auto, http or dns401Authentication required404User '<user>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-domains-name-certificate/