Get my dochost account
get_accountGet your plan, page-quota usage, entitlement flags (size cap, custom slug, password, branding, subdomain, custom domain), and the primary host new links publish on. Call before publishing so you know your limits up front. The primary host is chosen in the dashboard (manageDomainsUrl), not through this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| plan | Yes | ||
| password | No | ||
| analytics | No | ||
| pageQuota | No | ||
| pagesUsed | No | ||
| sizeCapMb | No | ||
| customSlug | No | ||
| noBranding | No | ||
| primaryHost | No | Host new links publish on: a custom domain, `{sub}.dochost.co`, or `dochost.co/d`. | |
| customDomain | No | Whether this plan may point a hostname the user owns at their pages (set it at manageDomainsUrl). | |
| pagesRemaining | No | ||
| permanentLinks | No | ||
| customSubdomain | No | Whether this plan may claim a {name}.dochost.co subdomain (set it at manageDomainsUrl). | |
| manageDomainsUrl | No | Dashboard page where the user adds domains and picks the primary one. Send them here to change it. |