Skip to main content
POST
/
backups
/
latest
Fetch Latest Backups in Bulk
curl --request POST \
  --url https://api.altostrat.io/backups/latest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sites": [
    "a1b2c3d4-e5f6-7890-1234-567890abcdef"
  ]
}'
{
  "results": {},
  "total_sites": 3,
  "successful": 1,
  "errors": 2
}

Authorizations

Authorization
string
header
required

A bearer token is required for all API requests. Obtain a token via the Altostrat Authentication API.

Body

application/json

A list of site IDs for which to retrieve the latest backup.

sites
string<uuid>[]
required

An array of site ID strings.

Required array length: 1 - 50 elements

Response

A successful response containing the results for each requested site.

results
object

A map of site IDs to their corresponding backup retrieval results.

total_sites
integer

The total number of sites that were requested.

Example:

3

successful
integer

The count of sites for which a backup was successfully retrieved.

Example:

1

errors
integer

The count of sites for which retrieval failed (due to errors or no backups found).

Example:

2