Create Portal Domain
Beta/v1/settings/portal-domainsIdempotent with Idempotency-Key header. Learn more
Connects a custom domain to the account's customer portal and returns the DNS records to publish.
An account can only have one custom domain at a time: adding a second one — or claiming a domain another account already uses — returns a conflict error. The new domain starts in pending; publish the returned records at your DNS provider, then run the verify action to move it towards serving.
domainstringThe fully-qualified domain name to connect (e.g. shop.acme.com).
A subdomain such as shop.acme.com is routed with a CNAME record and an apex domain such as acme.com with an A record; either way the records to publish come back on the response. The value is lowercased and any trailing dot is stripped before it is stored, and OpenMRP-owned hostnames are rejected.
idstringPortal domain ID.
objectstringenumValues:portal_domainResource type identifier.
domainstringThe fully-qualified domain name (e.g. shop.acme.com).
statusstringenumValues:pendingsecuringverifiedHow far the domain has progressed towards serving the portal.
pending: the domain is waiting on DNS. Publish the listed records, then run the verify action.securing: DNS is correct and the TLS certificate is being issued. The portal is not yet reachable over HTTPS.verified: the certificate is live and the portal is served on the domain.failed: the domain was rejected and cannot be used.
The DNS records that must be published for the domain to route to the portal and verify.
The list is refreshed from the serving provider every time the domain is created or verified. It always contains the routing record; ownership records appear only while a verification challenge is outstanding.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of dns_recordResources in this page.
objectstringenumValues:dns_recordResource type identifier.
typestringenumValues:CNAMEATXTThe kind of DNS record to publish.
CNAME: points a subdomain at the portal's serving infrastructure.A: points an apex domain at the portal's serving infrastructure.TXT: carries an ownership-verification challenge.
namestringRecord name (host) to publish.
valuestringRecord value to publish.
reasonstringenumValues:routingownershipWhy the record must be published.
routing: the record points traffic at the portal's serving infrastructure.ownership: the record proves control of a domain that is already claimed elsewhere.
verified_atstring (date-time)nullableWhen the domain became fully verified — its TLS certificate live and the portal serving on it.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Portal Domain