# Tổng quan gói Tino Uptime

`GET /service/@id/uptime` · Tino Uptime, token đăng nhập của chủ dịch vụ

Gói đang dùng (`subscription`: mã gói, tên gói, hạn mức `limits`, nơi đổi gói `manage_hint`), mức dùng (`usage`), số monitor theo trạng thái (`monitor`) và `login_url`: link mở bảng điều khiển Tino Uptime (đăng nhập bằng tài khoản Tino) cho phần chưa có API ở đây (trang trạng thái, máy chủ, WordPress, CVE). Dịch vụ không còn là gói đang dùng của khách trả 404 `service_not_linked`.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/uptime` |
| Method | `GET` |
| Xác thực | token đăng nhập của chủ dịch vụ Tino Uptime (`Authorization: Bearer <token>`); gateway `/v1` chưa mở Tino Uptime |
| Content-Type | — (không có body) |

## Tham số

| Tên | Vị trí | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- | --- |
| `id` | đường dẫn | int | có | ID dịch vụ Tino Uptime |

## Example request

```bash
curl "https://api.tino.vn/service/100002/uptime" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` là token đăng nhập của chủ dịch vụ Tino Uptime. Tham số đường dẫn trong ví dụ là giá trị mẫu.

SDK ([SDK & Ví dụ](/docs/sdk)): chưa có hàm riêng, dùng `client.request("GET", "/service/@id/uptime")`.

## Example response

```json
{
 "data": {
  "account": {
   "external_id": "12345",
   "name": "Công ty ABC",
   "status": "active",
   "plan_code": "plus",
   "billing_source": "hostbill",
   "external_ref": "100002",
   "created_at": "2026-10-20T15:00:00+07:00"
  },
  "subscription": {
   "plan_code": "plus",
   "plan_name": "Plus",
   "billing_source": "hostbill",
   "status": "active",
   "period_start": "2026-10-20T15:00:00+07:00",
   "period_end": null,
   "limits": {
    "max_monitors": 25,
    "min_interval_s": 60,
    "raw_retention_days": 90,
    "status_pages": 3,
    "status_page_subscribers": 500,
    "agent_hosts": 5,
    "wp_sites": 5,
    "locations": [
     "vn-cmc",
     "vn-vt",
     "intl"
    ],
    "channels": [
     "email",
     "telegram",
     "discord",
     "slack",
     "webhook"
    ],
    "cve_alerts": true,
    "cve": true
   },
   "flags": [],
   "manage_hint": "hostbill"
  },
  "usage": {
   "monitors": 3,
   "status_pages": 1,
   "agent_hosts": 0,
   "wp_sites": 0,
   "monitors_paused_by_plan": 0,
   "limits": {
    "max_monitors": 25,
    "min_interval_s": 60,
    "raw_retention_days": 90,
    "status_pages": 3,
    "status_page_subscribers": 500,
    "agent_hosts": 5,
    "wp_sites": 5,
    "locations": [
     "vn-cmc",
     "vn-vt",
     "intl"
    ],
    "channels": [
     "email",
     "telegram",
     "discord",
     "slack",
     "webhook"
    ],
    "cve_alerts": true,
    "cve": true
   }
  },
  "monitor": {
   "total": 3,
   "up": 2,
   "down": 0,
   "paused": 1
  },
  "login_url": "https://uptime.tino.vn/login/tino?return_to=/"
 }
}
```

Mẫu dựng theo OpenAPI của Tino Uptime (Tino chuyển tiếp nguyên câu trả lời trong `data`), giá trị là ví dụ.
