# Quyền có thể cấp cho liên hệ

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

Các quyền có thể cấp cho liên hệ. Mỗi tên miền và dịch vụ có thể có thêm quyền, tuỳ tính năng.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/contact/privileges` |
| 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ố

Route này không có tham số.

## Example request

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

`$TINO_TOKEN` là token có quyền `profile:read`.

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

## 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)`).
