# Add DNS record to domain

`POST /v1/domain/@id/dns` · scope `dns:write`

Add a DNS record to the domain.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/domain/@id/dns` |
| Method | `POST` |
| Scope | `dns:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | `application/json` |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | int | yes | Domain ID |
| `name` | body | string | — | Reord name |
| `type` | body | string | — | Reord type |
| `priority` | body | string | — | Reord priority |
| `content` | body | string | — | Reord content eg. IP addres for A records |

## Example request

```bash
curl -X POST "https://api.tino.vn/v1/domain/200001/dns" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>",
  "type": "<type>",
  "priority": "<priority>",
  "content": "<content>"
}'
```

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

SDK ([SDK & examples](/en/docs/sdk)): no dedicated function yet, use `client.request("POST", "/domain/@id/dns")`.

## Example response

No live sample: the route changes real data or the test account has no data for it. The answer is a JSON object; errors follow the common shape in [Calling the Tino API](/en/docs/api#errors).
