Home Assistant API request for backup list

Hello
Trying to get list of HA backups via API/TOKEN
Both endpoints not working:
http://homeassistant.local:8123/api/hassio/backups
http://homeassistant.local:8123/api/backups

Is it possible to get backup list via API?

you’re trying to retrieve a list of backups from Home Assistant using the API, but you’re encountering issues with the endpoints. Here are a few steps to help you troubleshoot and resolve the problem:

Verify API Token: Ensure that you are using a valid API token with the necessary permissions to access the backup endpoints.

Correct Endpoint: The correct endpoint for retrieving backups in Home Assistant is typically:

http://homeassistant.local:8123/api/hassio/snapshots
Make sure you are using the correct endpoint.

Check Configuration: Ensure that the Supervisor API is enabled in your Home Assistant configuration. You can do this by adding the following to your configuration.yaml file:

yaml
api:
Use Supervisor URL: If you are using Home Assistant OS or Home Assistant Supervised, you can use the internal Supervisor URL:

Example API Call: Here is an example of how to make the API call using curl:

bash
curl -s -H “Authorization: Bearer YOUR_API_TOKEN” -H "Content-Type: applicat