# GET /domains/{name}/redirects

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

UrbeStack release 0.2.35 API operation in the domains group.

List a domain's path redirects

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

The response contains redirects ordered by source. Each redirect includes id, source, target, code, match, keep_query and created_at. The keep_query field is returned as 1 or 0.

An unknown domain returns 404. Access to an existing domain is limited to administrators, the domain owner and the owner's reseller. Other callers receive 403.

## Parameters

- `name` (path, DomainName, 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/domains/example.com/redirects" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "redirects": [
    {
      "code": 1,
      "created_at": "2026-09-09T10:15:00Z",
      "id": 1,
      "keep_query": true,
      "match": "text",
      "source": "/old",
      "target": "https://example.com/new"
    }
  ]
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 401: Authentication required
- 403: Insufficient privileges
- 404: Domain '<name>' not found
