# Domains

"Domain" refers to domain(s) that you have bind to our system. You can *list* and \_access \_Domains.

* [Access all domains](#get-all-domains)
* [Access domain](#show-domain-info)

## Get all domains

*GET* <https://to.click/api/v1/domains>

*HEADERS*

```
X-AUTH-TOKEN: jvuhNJgV59Wo6HRmtVxEgDEU
Content-Type: application/json
```

### Sample Request

```
curl --request GET  --url 
https://to.click/api/v1/domains
  --header 'Content-Type: application/json'  --header 'X-AUTH-TOKEN: jvuhNJgV59Wo6HRmtVxEgDEU'
```

### Sample response

```
{
    "data": [
        {
            "id": "6",
            "type": "domain",
            "attributes": {
                "id": 6,
                "full_name": "http://to.roleus.ru"
            }
        },
        {
            "id": "1",
            "type": "domain",
            "attributes": {
                "id": 1,
                "full_name": "http://clc.to"
            }
        },
        {
            "id": "7",
            "type": "domain",
            "attributes": {
                "id": 7,
                "full_name": "http://clc.moo"
            }
        }
    ]
}
```

## Show domain

*GET* <https://to.click/api/v1/domains/6>

*HEADERS*

```
X-AUTH-TOKEN: jvuhNJgV59Wo6HRmtVxEgDEU
Content-Type: application/json
```

### Sample Request

```
curl --request GET  --url 
https://to.click/api/v1/domains/6
  --header 'Content-Type: application/json'  --header 'X-AUTH-TOKEN: jvuhNJgV59Wo6HRmtVxEgDEU'
```

### Sample response

```
{
    "data": {
        "id": "6",
        "type": "domain",
        "attributes": {
            "id": 6,
            "full_name": "http://to.roleus.ru"
        }
    }
}
```
