Projects
Publish projects and configure how visitors find, access, and interact with them.
Scroll through this guide to explore the project lifecycle, access, appearance, domains, and data. The Projects menu jumps to each section. Each section also links to its standalone page and Markdown export.
Lifecycle
| Task | Operation | Effect |
|---|---|---|
| Publish a project | POST /v1/upload | Publish one or more files and return a hostname. |
| Replace project content | PUT /v1/upload | Replace the hosted file set at the owned hostname. |
| Find a project | GET /v1/profile | Read project records in data.links and use subdomain as the hostname. |
| Delete a project | DELETE /v1/delete | Delete the entire project and its files. |
Access and discovery
| Feature | Use it for |
|---|---|
| Access control | Choose between a public link, a shared password, email capture, and approved email addresses. |
| Password protection | Require one shared password to open the project. |
| Email capture | Collect verified visitor addresses before granting access. |
| Email allowlist | Admit only specific verified addresses. |
| Search indexing | Ask search engines to keep the project out of search results. |
Appearance and interaction
| Feature | Use it for |
|---|---|
| Comments and feedback | Let visitors leave comments on the published project. |
| Page title and description | Set page and link-preview text. |
| Preview images and favicons | Set how the link looks when shared and in the browser tab. |
| Promotional slide-in | Add a visitor-facing call to action. |
Domains and data
| Feature | Public API and dashboard |
|---|---|
| Custom domains | Connect, verify, and remove domains through the API or the dashboard, and publish to a hostname. |
| Analytics | Read traffic, referrers, PDF views, and download counts in the dashboard. |
| Project data | Read project records and replace hosted files through the API. Export captured emails from the dashboard. |
Configure project settings
Send settings in a multipart request. For an owned project, settings-only or image-only updates preserve hosted files. See the settings reference.
Access control
Choose whether visitors open a project directly, enter a password, or verify an email address.
Open this section on its ownChoose an access mode
| Visitor experience | settings.accessMode |
Additional fields |
|---|---|---|
| Public link | public |
None |
| Shared password | password |
password |
| Capture verified emails | email_gate |
None |
| Admit specific email addresses | email_protect |
allowedEmails |
Use password protection for a shared secret, email capture to collect verified visitor addresses, or an email allowlist to restrict access to specific addresses. Search indexing controls discovery, not access.
Change access
Send accessMode in the multipart settings field. Selecting a mode turns off the other access modes; public makes the project accessible to anyone with the link. Omit accessMode when changing unrelated settings. An owned project can be updated without uploading its content again.
Access changes for projects using SSO are managed in the dashboard. An API request attempting to change SSO access returns SSO_MANAGED_IN_DASHBOARD. See settings reference.
Password protection
Require visitors to enter a shared password before opening the project.
Open this section on its ownSet or change a password
Choose accessMode: "password" and send a nonempty password without a colon. Enabling this mode is supported on Solo, Pro, and Pro Max plans.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"accessMode":"password","password":"replace-with-a-strong-password"}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Open the link in a private browser session to check the gate. Share the password separately from the link.
Remove protection
Send {"accessMode":"public"} in settings. This makes the project accessible to anyone with the link. Errors can include PASSWORD_REQUIRED, INVALID_PASSWORD, and FEATURE_NOT_IN_PLAN.
Email capture
Collect verified email addresses before visitors open a project.
Open this section on its ownVisitor behavior
Visitors enter and verify their email before opening the project. Use an email allowlist when only specific addresses should be admitted. This gate is distinct from the promotional slide-in.
Enable email capture
Use accessMode: "email_gate". This mode is available on Pro and Pro Max plans.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"accessMode":"email_gate"}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Check the gate in a private browser session. Export collected addresses from the project dashboard. To remove the gate, send {"accessMode":"public"}.
Email allowlist
Restrict a project to specific visitors who verify an approved email address.
Open this section on its ownVisitor behavior
Visitors sign in with a code sent to their approved address. Supply full email addresses; a whole domain such as @example.com is insufficient. This is distinct from email capture, which admits any verified address.
Set the allowlist
Choose email_protect and send the full, nonempty allowedEmails array. Addresses are trimmed and lowercased. Enabling this mode is supported on Pro and Pro Max.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"accessMode":"email_protect","allowedEmails":["ana@example.com","sam@example.com"]}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Send every address that should retain access when editing the list. Check the gate with an approved address in a private browser session. EMAIL_LIST_REQUIRED means the list is missing or empty; INVALID_EMAIL_LIST means an entry failed validation. Choose public to remove the gate.
Search indexing
Control whether your project asks search engines to include it in results.
Open this section on its ownManage search visibility
Send disableIndexing in settings. true hides the project from search engines; false lets them index it again. Hiding a project requires a paid plan.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"disableIndexing":true}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. You can also change it in the dashboard under Customize project → Access Settings → Hide from search engines. A free plan returns FEATURE_NOT_IN_PLAN, and a value other than true or false returns INVALID_VALUE.
A crawler directive asks search engines not to index a project. Public links remain accessible to visitors, and removal from existing search results may take time. For private projects, use access control.
Comments and feedback
Turn visitor comments on or off for a project.
Open this section on its ownTurn comments on or off
Send comments as a JSON Boolean. Use false to turn comments off. Omit accessMode to keep the current access gate.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"comments":true}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Open the returned link to check the visitor experience. A string such as "true" fails validation with INVALID_VALUE.
Page title and description
Set the text shown in browser tabs, search results, and link previews.
Open this section on its ownSet title and description
Send pageTitle and metaDescription inside settings. The title can be up to 60 characters and the description up to 145. These metadata features require a paid plan.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"pageTitle":"Quarterly report","metaDescription":"Read the latest financial results."}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Omit a field to preserve it; an empty string clears its override. Check the page after updating. Link-preview services can cache previous information. See Preview images and favicons for the share image and browser icon. Invalid text can return TOO_LONG.
Preview images and favicons
Set the image used for shared links and the icon shown in the browser tab.
Open this section on its ownUpload a share image or favicon
Send ogImageFile and logoImageFile as separate multipart binary parts. Use JPG, JPEG, PNG, GIF, or WebP. These features require a paid plan.
| Field | Purpose | Limit |
|---|---|---|
ogImageFile |
Open Graph image shown when a link is shared | 300 KiB |
logoImageFile |
Favicon shown in the browser tab | 64 × 64 pixels |
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
-F 'ogImageFile=@share.png' -F 'logoImageFile=@favicon.png'
For an owned project, image-only updates keep existing content files. File extensions and decoded image formats are validated.
Remove a custom image
Send {"removeOgImage":true} in settings to restore the default share image, or {"removeLogo":true} to remove the custom favicon. Do not send a removal flag with its corresponding binary file in the same request.
| Field error | Reason |
|---|---|
INVALID_IMAGE_FORMAT |
Unsupported or unreadable image. |
IMAGE_TOO_LARGE |
Share image exceeds 300 KiB. |
INVALID_IMAGE_DIMENSIONS |
Favicon is larger than 64 pixels in either direction. |
CONFLICTING_IMAGE_SETTINGS |
Matching file and removal flag sent together. |
See Project settings for the request format.
Promotional slide-in
Add an on-page promotion with a title, description, and call-to-action link.
Open this section on its ownConfigure a slide-in
Send a leadCapture object in settings. Set mode to promotional to enable it or none to remove it. Enabling the slide-in requires a Solo, Pro, or Pro Max plan.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"leadCapture":{"mode":"promotional","title":"Book a demo","ctaText":"Book now","ctaLink":"example.com/demo"}}'
Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules.
| Field | Validation |
|---|---|
title |
String, up to 50 characters |
description |
String, up to 120 characters |
ctaText |
String, up to 25 characters |
ctaLink |
HTTP(S) URL or mailto: address. A bare web address gets https://. |
Invalid changed values can return TOO_LONG or INVALID_URL. To request verified email before opening a project, use Email capture.
Custom domains
Connect, verify, list, and remove custom domains, and publish projects to them.
Open this section on its ownWorkflow
- Connect the domain with
POST /v1/custom-domains. The response lists the DNS records to add. The same records are emailed to the account owner. - Add the records at the DNS provider.
- Verify with
POST /v1/custom-domains/{domain}/verifyuntilstatusisactive. This usually takes a few minutes and can take up to 72 hours.GET /v1/custom-domains/{domain}shows which records are already live. - Publish with POST /v1/upload and
domainset to a hostname on the domain, such asdocs.example.com.
To remove a domain, delete every project published on it, then call DELETE /v1/custom-domains/{domain}.
Authentication and plans
Send x-api-key: <key>, the same key as the upload API. Requests count towards the same daily request limit.
| Plan | Custom domains |
|---|---|
| Free, Tiny | Not available |
| Solo | 5 |
| Pro | 15 |
| Pro Max | 25 |
Accounts with a custom limit agreed with Tiiny Host use that limit. Every connected domain counts towards the limit, whatever its status. The same limits apply in the dashboard.
Endpoints
| Method and path | Effect |
|---|---|
POST /v1/custom-domains |
Connect a domain. JSON body: {"domain":"docs.example.com"}. |
GET /v1/custom-domains |
List the account’s custom domains with the plan limit and how many are used. |
GET /v1/custom-domains/{domain} |
Return one domain’s status, its DNS records, and which records are live. |
POST /v1/custom-domains/{domain}/verify |
Check the DNS records and activate the domain once they are in place. |
DELETE /v1/custom-domains/{domain} |
Remove the domain. Every project on it must be deleted first. |
{domain} can be the domain (example.com) or any hostname on it (docs.example.com). Both refer to the same custom domain.
Subdomain or root domain
The value sent to POST /v1/custom-domains decides how the domain is set up. The dashboard offers the same choice.
| You send | Records to add | Result |
|---|---|---|
A subdomain, such as docs.example.com |
2 CNAME records: * and a certificate record |
Projects can be published on any hostname on example.com. |
The domain itself, such as example.com |
The 2 above, plus a www CNAME and an @ A record |
As above, and visitors to example.com are redirected to www.example.com. |
The setup is fixed when the domain is first connected. To switch, delete the domain and connect it again.
The certificate record’s host is a long name such as _3f1c….example.com. If the DNS provider appends the domain automatically, enter only the part before .example.com.
Example
curl --fail-with-body https://ext.tiiny.host/v1/custom-domains \
-H "x-api-key: $TIINY_API_KEY" -H 'Content-Type: application/json' \
-d '{"domain":"docs.example.com"}'
curl --fail-with-body -X POST https://ext.tiiny.host/v1/custom-domains/example.com/verify \
-H "x-api-key: $TIINY_API_KEY"
curl --fail-with-body https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=docs.example.com' -F 'files=@index.html'
Domain object
{
"domain": "example.com",
"subdomain": "docs",
"rootDomain": false,
"status": "pending",
"purchasedThroughTiiny": false,
"records": [
{"type":"CNAME","host":"*","value":"d1abc.cloudfront.net"},
{"type":"CNAME","host":"_3f1c.example.com","value":"_9a8b.acm-validations.aws"}
],
"createdAt": "2026-11-04T10:00:00.000Z"
}
status |
Meaning |
|---|---|
pending |
Waiting for the DNS records. Call verify again later. |
active |
Connected. Projects can be published on it. |
failed |
The certificate could not be issued, usually because the records were not added within 72 hours. Delete the domain and connect it again. |
disconnecting |
Being removed (older domains only). Call DELETE again after 5–10 minutes to finish. |
GET /v1/custom-domains/{domain}, and verify while the domain is still pending, also return dnsCheck, which compares each record with what is live. dnsCheck is null if the check could not run.
"dnsCheck": {
"allRecordsFound": false,
"records": [
{"type":"CNAME","host":"*","expected":"d1abc.cloudfront.net","found":["d1abc.cloudfront.net"],"matches":true},
{"type":"CNAME","host":"_3f1c.example.com","expected":"_9a8b.acm-validations.aws","found":[],"matches":false}
]
}
Success responses
| Request | Response |
|---|---|
| Connect a new domain | 201 {"success":true,"data":<domain object>} |
| Connect a domain already connected to your account | 200 {"success":true,"data":<domain object>}. Safe to repeat; no new records are created. |
| List | 200 {"success":true,"data":{"domains":[<domain object>…],"limit":5,"used":1}} |
| Get one, verify | 200 {"success":true,"data":<domain object>} |
| Delete | 200 {"success":true,"data":{"domain":"example.com","status":"deleted"}}, or "disconnecting" on older domains |
Remove a domain
- Delete each project on the domain with DELETE /v1/delete and
-F 'domain=docs.example.com'. - Call
DELETE /v1/custom-domains/{domain}. It returnsstatus: "deleted". On older domains it returns"disconnecting"; call it again after 5–10 minutes to finish.
If any projects are still on the domain, step 2 returns DOMAIN_HAS_SITES and nothing is removed. The error lists the remaining projects in sites.
Domains bought through Tiiny Host cannot be removed through the API. Manage them in the dashboard.
Errors
Validation problems return 400 with this shape:
{
"success": false,
"code": "INVALID_CUSTOM_DOMAIN_REQUEST",
"message": "This custom domain request couldn't be completed.",
"errors": [
{"field":"domain","code":"CUSTOM_DOMAIN_LIMIT_REACHED","message":"Your plan allows up to 5 custom domains."}
]
}
errors[].code |
Meaning |
|---|---|
INVALID_DOMAIN |
Not a valid domain name (send example.com, not https://example.com/), or a Tiiny Host domain. |
FEATURE_NOT_IN_PLAN |
The plan does not include custom domains. |
CUSTOM_DOMAIN_LIMIT_REACHED |
The plan’s limit is reached. Delete a domain or upgrade. |
DOMAIN_ALREADY_CONNECTED |
Another Tiiny Host account has connected this domain. |
PHP_DOMAIN_MANAGED_IN_DASHBOARD |
The domain is used by a PHP project. Manage it in the dashboard. |
DOMAIN_PURCHASED_THROUGH_TIINY |
DELETE only. The domain was bought through Tiiny Host. Manage it in the dashboard. |
DOMAIN_HAS_SITES |
DELETE only. Projects are still published on the domain; sites lists them. |
{
"success": false,
"code": "INVALID_CUSTOM_DOMAIN_REQUEST",
"message": "This custom domain request couldn't be completed.",
"errors": [
{
"field": "domain",
"code": "DOMAIN_HAS_SITES",
"message": "example.com still has 2 live sites. Delete them first, then delete the domain.",
"sites": ["blog.example.com", "docs.example.com"]
}
]
}
A domain that is not connected to your account, including one connected to another account, returns 404 {"success":false,"code":"DOMAIN_DOES_NOT_EXIST","message":"No custom domain with this name is connected to your account."}.
Publish on a custom domain
Upload with domain set to a hostname on a connected domain, with no scheme or path. If that hostname already belongs to one of your projects, the upload replaces the project’s files, so send the complete file set.
Uploading to a custom domain that is not connected to your account returns 403, from both the API and the dashboard:
{"success":false,"code":"CUSTOM_DOMAIN_NOT_OWNED","error":"CUSTOM_DOMAIN_NOT_OWNED","message":"This domain isn't connected to your account. Connect it with POST /v1/custom-domains first."}
Fetch profile also lists configured domains in data.customDomains and project hostnames in data.links[].subdomain.
Analytics
Find project traffic, referrers, device data, and eligible download metrics.
Open this section on its ownWhere to read metrics
| Metric | Surface |
|---|---|
| Visits, page views, referrers, locations, devices | Analytics in the project dashboard on eligible paid plans. |
| Per-page PDF activity and download counts | Project analytics on Solo and above. |
| Project list and account limits | GET /v1/profile. |
The public REST API and MCP project tools do not expose analytics metrics. Use the dashboard to read project performance. The profile endpoint returns project records and limits.
Project data
Work with project records, hosted files, and collected visitor emails.
Open this section on its ownProject records and files
| Data | Supported workflow |
|---|---|
| Project hostname and metadata | Fetch profile and read data.links[]. MCP list_sites also returns project hostnames. |
| Hosted file set | Create or Update. Sending content files to an existing project replaces its file set; a settings-only update keeps it. |
| Captured visitor emails | Export them from the dashboard for projects using email capture. |
Application data
A static upload hosts your files. Use an external backend or form service if the application needs to process and store submissions. The public Tiiny Host API exposes neither a general project data store nor a per-file inventory endpoint. Forms on Tiiny Host.
Settings reference
Fields, eligibility, and validation for project settings.
Open this section on its ownRequest
Both POST /v1/upload and PUT /v1/upload accept a multipart text field named settings containing one JSON object. The retired siteSettings field returns FIELD_RETIRED.
| Operation | What to send |
|---|---|
| Create | Content files, optional domain, and optional settings or image parts. |
| Update settings on an owned project | Existing domain and a nonempty settings change or supported image part. Omit content files to keep them. |
| Replace content | Existing domain and complete files set. Add settings only for the changes you want. |
Omitted settings preserve existing values. A settings-only update still passes the applicable plan and quota checks. Missing or unowned projects with no content files return FILES_REQUIRED.
Fields and eligibility
| Key | Validation and use |
|---|---|
accessMode |
One of public, password, email_gate, email_protect. See Access control. |
password |
Required only with password mode. Nonempty string without a colon. Solo, Pro, and Pro Max. |
allowedEmails |
Required only with email_protect. Nonempty array of full addresses. Pro and Pro Max. |
comments |
Boolean. See Comments and feedback. |
leadCapture |
Optional nested mode, title, description, ctaText, and ctaLink. See Promotional slide-in. |
pageTitle, metaDescription |
Strings, up to 60 and 145 characters. See Page title and description. |
removeOgImage, removeLogo |
Booleans. Use true to remove the matching custom image. See Preview images and favicons. |
disableIndexing |
Boolean. true hides the project from search engines. Paid plans. See Search indexing. |
email_gate is available on Pro and Pro Max. New SSO access changes are managed in the dashboard.
Update an owned project
Set TIINY_API_KEY and replace the hostname with an existing project you own.
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
--form-string 'settings={"comments":true,"pageTitle":"Quarterly report"}'
Validation response
400 INVALID_SITE_SETTINGS includes an errors array. Each item identifies the field, code, and message.
{
"success": false,
"code": "INVALID_SITE_SETTINGS",
"message": "Some site settings couldn't be applied.",
"errors": [
{"field":"pageTitle","code":"TOO_LONG","message":"Page title can be at most 60 characters."}
]
}
| Stage | Error codes |
|---|---|
| Parse and validate JSON | FIELD_RETIRED, INVALID_JSON, UNKNOWN_SETTING, INVALID_VALUE |
| Validate field combinations | PASSWORD_REQUIRED, PASSWORD_WITHOUT_PASSWORD_MODE, EMAIL_LIST_REQUIRED, EMAILS_WITHOUT_EMAIL_PROTECT_MODE, CONFLICTING_IMAGE_SETTINGS |
| Check eligibility and values | FEATURE_NOT_IN_PLAN, SSO_MANAGED_IN_DASHBOARD, INVALID_PASSWORD, INVALID_EMAIL_LIST, TOO_LONG, INVALID_URL |
| Check images | INVALID_IMAGE_FORMAT, IMAGE_TOO_LARGE, INVALID_IMAGE_DIMENSIONS |