# Export my data

`POST /hosting/sites/{id}/data/export` · Rivier · hosting

Export my data: the site's records and a dump of what it stores, checked after writing. Kept 30 days.

- Scope: hosting:write
- Mcp: rivier_hosting_export_create
- Graphql: Mutation.hostingDataExport
- Sdk: hosting.data.export
- Cli: hosting data export
- Events: hosting.export.created

## Parameters

- `id` (path, required), string

## Responses

- `201`: 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 POST 'https://api.rivier.ai/hosting/sites/{id}/data/export' \
  -H 'Authorization: Bearer $KEY'
```
