# GET /users/{name}/backup-excludes

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the backups group.

List a customer's backup exclusions

- Who may call it: administrator, reseller, customer
- Token scope, any of: backups, read, all
- Answers: 200 OK

Administrators can list any customer's exclusions, and customers can list their own. The response contains the customer name in user and the exclusions in excludes, sorted by path. Each exclusion includes id, path, locked and created_at.

Paths are relative to the customer's home directory. Both nightly and on-demand backups honor these exclusions. A locked exclusion appears to the customer as set by an administrator. An administrator can use a locked exclusion to back up a directory separately with an incremental backup when it is too large for the nightly archive.

## Parameters

- `name` (path, Username, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/users/alice/backup-excludes" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "excludes": [
    {
      "created_at": "2026-09-09T10:15:00Z",
      "id": 1,
      "locked": true,
      "path": "public_html/index.php"
    }
  ],
  "user": "alice"
}
```

## Errors

- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
