# Recent runtime log lines of a Next site

`GET /hosting/sites/{id}/logs` · Rivier · hosting

Recent runtime log lines of a Next site.

- Scope: hosting:read
- Mcp: rivier_hosting_logs
- Graphql: Query.hostingLogList
- Sdk: hosting.log.list
- Cli: hosting log list

## Parameters

- `id` (path, required), string
- `lines` (query), integer

## 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/sites/{id}/logs' \
  -H 'Authorization: Bearer $KEY'
```
