Lấy danh sách hotline
API này dùng để lấy danh sách hotline đã được gắn lên tổng đài.
Body
Responses
200
A successful response
application/json
post
POST /GetHotlines HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"sort": "text"
}
}
200
A successful response
{
"hotlines": [
{
"connection_id": "text",
"connection_method": "unknown",
"created_at": "2025-08-02T04:35:17.278Z",
"description": "text",
"hotline": "text",
"id": "text",
"is_free_charge": true,
"name": "text",
"network": "unknown",
"owner_id": "text",
"status": "Z",
"updated_at": "2025-08-02T04:35:17.278Z"
}
],
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"next": "text",
"prev": "text",
"sort": "text"
}
}
Request:
curl --location '$BASE_URL.Etelecom/GetHotlines' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
"paging": {
"after": "<string>",
"before": "<string>",
"limit": "<integer>",
"sort": "<string>"
}
}'
Response:
{
"hotlines": [
{
"connection_id": "string",
"connection_method": "unknown",
"created_at": "2019-08-24T14:15:22Z",
"description": "string",
"hotline": "string",
"id": "string",
"is_free_charge": true,
"name": "string",
"network": "unknown",
"owner_id": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"paging": {
"after": "string",
"before": "string",
"limit": 0,
"next": "string",
"prev": "string",
"sort": "string"
}
}
Cấu trúc thuộc tính dữ liệu trả về:
Tên trường
Kiểu dữ liệu
Mô tả
id
string
ID hotline
name
string
Tên hotline
hotline
string
Số hotline
network
string
Nhà mạng
created_at
string
Ngày khởi tạo máy nhánh
update_at
string
Thời gian cập nhật gần nhất
status
string
Trạng thái
Z
: Mới tạo
P
: Enable
N
: Disable
Last updated