# Chi tiết liên hệ

`GET /v1/contact/@id` · quyền `profile:read`

Thông tin và quyền của một liên hệ.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/contact/@id` |
| Method | `GET` |
| Quyền (scope) | `profile:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (không có body) |
| Token gọi được | token ứng dụng (`tinoat_`), token API cá nhân (`tinopat_`) |

## Tham số

| Tên | Vị trí | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- | --- |
| `id` | đường dẫn | integer | có | ID liên hệ |

## Example request

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

`$TINO_TOKEN` là token có quyền `profile:read`. Tham số đường dẫn trong ví dụ là giá trị mẫu.

SDK ([SDK & Ví dụ](/docs/sdk)): Python `client.account.get_contact(id)`, Node.js `await client.account.getContact(id);`, PHP `$client->account->getContact($id);`.

## Example response

```json
{
 "privileges": {
  "billing": [
   "emails",
   "newinvoices",
   "… 11 more item(s)"
  ],
  "support": [
   "newticket",
   "tickets",
   "… 3 more item(s)"
  ],
  "disabled_support_departments": [
   2,
   3,
   "… 5 more item(s)"
  ],
  "misc": [
   "editmain",
   "manageservicegroups",
   "… 9 more item(s)"
  ],
  "services": {
   "full": 1,
   "100001": [
    "basic",
    "billing",
    "… 18 more item(s)"
   ],
   "100002": [
    "basic",
    "billing",
    "… 23 more item(s)"
   ],
   "100003": [
    "basic",
    "billing",
    "… 5 more item(s)"
   ]
  },
  "domains": {
   "full": 1,
   "200001": [
    "basic",
    "renew",
  … 25 more line(s)
```

Mẫu thật từ tài khoản thử, đã che dữ liệu cá nhân; mảng và chuỗi dài được rút gọn (`… N more item(s)`, `… N more line(s)`).
