Get a site
One site in full: settings, stats, a window of its pages, recent activity and, while an import is running, build progress. pages is a window: it holds up to pagesLimit HTML pages (500 by default); follow nextPagesCursor for the rest, or use GET /api/v1/sites/{slug}/pages for a paged list of every page. Add brief=1 to include the head of the site brief.
The path accepts the site id (a UUID) as well as the slug. An old slug (after a rename) answers 301 for reads and 308 for writes, and a site id answers 307, both to the canonical slug path. Follow redirects.
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
Query parameters
Max HTML pages returned (default 500). Use with pagesCursor on big clones.
Key cursor from a prior response's nextPagesCursor.
Filter HTML pages whose content key contains this term (case-insensitive).
When 1, include parsed _intent/site.md head in brief (~1 KB).
Response
The site.
Example response
{
"id": "3f6c1d52-8a4b-4e0e-9c57-2f1b7a9d6e10",
"publicUrl": "https://acme-studio.dotsy.site/",
"liveUrl": "https://acme-studio.dotsy.site/",
"pages": [
{
"key": "index.html",
"name": "Home",
"route": "/"
}
],
"activity": [
{
"label": "Published to the edge"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.