# One source file's text, as it stands or at a checkpoint

`GET /hosting/coder/projects/{id}/file` · Rivier · hosting

One source file's text, as it stands or at a checkpoint.

- Scope: hosting:read
- Graphql: Query.hostingCoderFilesGet
- Sdk: hosting.coderFiles.get
- Cli: hosting coder files get

## Parameters

- `id` (path, required), string
- `path` (query, required), string
- `checkpoint` (query), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/hosting/coder/projects/{id}/file' \
  -H 'Authorization: Bearer $KEY'
```
