A hosted subdomain is a subdomain of your site, pointed at Fingerly with a CNAME, that serves the browser SDK when you can run no proxy. It needs no proxy key. Only admin management keys can manage them; a developer key answers 403.
Path parameter
organization_idstringrequiredYour organization, from Describe the key. A path naming any other organization answers404.
List hosted subdomains
/api/v1/management/organizations/{organization_id}/hosted-domains Management keyResponse
availablebooleanWhether hosted subdomains can be added on this deployment. Existing ones can always be listed and removed.targetstringWhat each subdomain'sCNAMEpoints at. Omitted whenavailableisfalse.domainsHostedDomain[]Every hosted subdomain.8 child fields
idstringThe hosted subdomain's ID.hostnamestringThe subdomain, such ask7.shop.example.pathstringWhere the browser SDK posts on it, such as/q3v8wz1p.statusstringpendingwhile the record does not resolve or the certificate is being issued,activeonce it is served, orfailed.problemstringWhy the certificate is not issued yet, or why it failed. Omitted when there is nothing to report.checked_atstringWhen its DNS and certificate were last checked.activated_atstringWhen it becameactive. Omitted until then.created_atstringWhen it was added.
Add a hosted subdomain
/api/v1/management/organizations/{organization_id}/hosted-domains Management keyBody
hostnamestringrequiredA subdomain of your site, such ask7.shop.example, never the domain itself. A label a content blocker would match, such asfp,metricsortracking, is refused.pathstringWhere the browser SDK will post on it. Omit it for a random one, which is what we recommend. It follows the rules of a proxy path.
Answers 201 with the hosted subdomain, pending until its CNAME to target resolves and its certificate is issued. Create the record, then point the browser SDK's endpoints at https://<hostname><path>.
Pending subdomains are checked every 30 seconds, so there is no need to poll. Read the list, or check one at once, to follow it.
Check a hosted subdomain now
/api/v1/management/organizations/{organization_id}/hosted-domains/{hosted_domain_id}/check Management keyChecks the subdomain's DNS and certificate at once, rather than at the next scheduled check, and answers with the hosted subdomain as it is now. This is Check now in the dashboard.
Remove a hosted subdomain
/api/v1/management/organizations/{organization_id}/hosted-domains/{hosted_domain_id} Management keyStops serving the subdomain at once, drops its certificate, and answers 204. Delete the CNAME at your DNS host afterwards. There is no undo: adding the name again starts over with a new certificate.
Errors
| Status | Code | When |
|---|---|---|
404 | hosted_domain_not_found | No such hosted subdomain in your organization. |
409 | hosted_domains_unavailable | Hosted subdomains cannot be added on this deployment. available says so in advance. |
409 | hosted_domain_taken | The name is already a hosted subdomain, of your organization or another. |
422 | hosted_domain_rejected | The name is not usable: not a subdomain, not a valid hostname, one of Fingerly's own, or a label content blockers match. error.message says which. |
422 | proxy_path_rejected | The path is not valid, or contains a word content blockers match. error.message names it. |