# DNS zones of a service

`GET /v1/service/@service_id/dns` · scope `dns:read`

DNS zones in DNS service `@service_id`.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@service_id/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

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `service_id` | path | integer | yes | DNS service ID |

## Example request

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

`$TINO_TOKEN` is a token with the scope `dns:read`. Path parameters in the example are sample values.

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

## Example response

```json
{
 "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)`).
