Routes
Get one route by path
Returns the route at path, including staged changes. The home page is …/routes/ (trailing slash). Other paths are sent without the leading slash, for example …/routes/blog/launch for /blog/launch.
get/api/v1/sites/{slug}/routes/{path}
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}/routes/{path}
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
slugstring required
Example:acme-studio
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
pathstring required
Percent-encode each segment; '/' may be sent raw or as %2F. Keys may contain '/'.
Response
The route.
Example response
{
"path": "/about",
"contentKey": "about.html",
"layout": "layouts/main.html",
"title": "About us"
}Changes
No recorded changes to this operation across all 1 revision of this API.