# List DNS zones

`GET /v1/dns` · scope `dns:read`

All DNS zones of the account, with the DNS services that contain them.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/dns` |
| Method | `GET` |
| Scope | `dns:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

This route takes no parameters.

## Example request

```bash
curl "https://api.tino.vn/v1/dns" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `dns:read`.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.dns.list_zones_all()`, Node.js `await client.dns.listZonesAll();`, PHP `$client->dns->listZonesAll();`.

## Example response

```json
{
 "service_ids": [
  "100003"
 ],
 "zones": [
  {
   "domain_id": "500001",
   "name": "example.com",
   "service_id": "100003"
  }
 ]
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
