Get site database export
get_site_database_exportRead the status of a site database export: running, ready, failed or expired. While it runs, the call waits up to about 15 seconds for the file. An export that nobody reads for a minute stops, so call this again after pollAfterSeconds. The file is not part of the result. When the status is ready, download it with ship sites export-db <SITE_ID> --export <EXPORT_ID>, or from GET /v1/sites/{siteId}/database/exports/{exportId}/file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteId": "<siteId>",
"exportId": "<exportId>"
},
"name": "get_site_database_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site id from list_sites | |
| exportId | Yes | Export id from start_site_database_export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| siteId | Yes | ||
| status | Yes | `running` until the file is made. `ready` while the file can be downloaded. `expired` after `expiresAt`: start a new export. `failed` gives the cause in `failure`. | |
| failure | Yes | ||
| filename | Yes | ||
| createdAt | Yes | ||
| expiresAt | Yes | ||
| completedAt | Yes | ||
| pollAfterSeconds | Yes |