# GET /domains/{name}

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

UrbeStack release 0.2.35 API operation in the domains group.

Get a domain

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

The response contains the domain in domain, including its effective PHP configuration in php_effective, its aliases and redirects, and the names of its direct subdomains in subdomains.

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" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "domain": {
    "bandwidth_cut": true,
    "created_at": "2026-09-09T10:15:00Z",
    "directory_listing": true,
    "docroot": "/home/alice/files/web/example.com/public_html",
    "error_pages": true,
    "id": 1,
    "move_state": "text",
    "name": "example.com",
    "package": "basic",
    "parent": "example.com",
    "php_effective": {},
    "php_settings": {},
    "php_version": "8.4",
    "ssl": {},
    "stats_enabled": true,
    "status": "active",
    "template": "default",
    "user": "alice",
    "user_id": 2,
    "wildcard": true,
    "www_alias": true,
    "www_redirect": "none"
  }
}
```

## 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
