---
title: "Open one file of a deployed build's site"
url: https://xovris.ai/docs/api/operations/getcodesitesbytokenbypath/
---

# Open one file of a deployed build's site

`GET /v1/code/sites/{token}/{path}`

No token needed: anyone may call this.

## Parameters

- `token` (string, path, required)
- `path` (string, path, required)

## Answers

- `200`: A file of the build's site in its own media type - a page, a script, a style, a picture or a font - or its app's own answer. (text/html: string; text/css: string; text/javascript: string; application/javascript: string; application/json: object; application/manifest+json: object; text/plain: string; text/markdown: string; image/svg+xml: string; image/png: string; image/jpeg: string; image/gif: string; image/webp: string; image/avif: string; image/x-icon: string; font/woff2: string; font/woff: string; audio/mpeg: string; video/mp4: string)
- `404`: Not part of this site, or a page sent to rather than read - said in plain words; an app's own path says it as JSON with what to do next. (text/plain: string; application/json: object)
- `405`: Not part of this site, or a page sent to rather than read - said in plain words; an app's own path says it as JSON with what to do next. (text/plain: string; application/json: object)
- `default`: Not part of this site, or a page sent to rather than read - said in plain words; an app's own path says it as JSON with what to do next. (text/plain: string; application/json: object)

## A call

The address is https://api.xovris.ai/v1/code/sites/{token}/{path} - put your own value in place of each part in braces.

```sh
curl --request GET \
  --url 'https://api.xovris.ai/v1/code/sites/{token}/{path}'
```
