Lấy danh sách máy nhánh
API này dùng để lấy danh sách máy nhánh đã được tạo trên tổng đài.
Body
Responses
200
A successful response
application/json
post
POST /GetExtensions 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
{
"extensions": [
{
"account_id": "text",
"created_at": "2025-07-12T03:18:23.739Z",
"expires_at": "2025-07-12T03:18:23.739Z",
"extension_number": "text",
"extension_password": "text",
"hotline_id": "text",
"id": "text",
"state": "Z",
"subscription_id": "text",
"tenant_domain": "text",
"tenant_id": "text",
"updated_at": "2025-07-12T03:18:23.739Z",
"user_id": "text"
}
],
"paging": {
"after": "text",
"before": "text",
"limit": 1,
"next": "text",
"prev": "text",
"sort": "text"
}
}
Request:
curl --location '$BASE_URL.Etelecom/GetExtensions' \
--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:
{
"extensions": [
{
"account_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"extension_number": "string",
"extension_password": "string",
"hotline_id": "string",
"id": "string",
"state": "Z",
"subscription_id": "string",
"tenant_domain": "string",
"tenant_id": "string",
"updated_at": "2019-08-24T14:15:22Z",
"user_id": "string"
}
],
"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 máy nhánh
extension_number
string
Số máy nhánh
extension_password
string
Mật khẩu máy nhánh
tenant_domain
string
Domain tổng đài
hotline_id
string
ID hotline được gán cho máy nhánh
created_at
string
Ngày khởi tạo máy nhánh
expires_at
string
Ngày hết hạn máy nhánh (VD: "2021-03-10T17:07:19+07:00")
Last updated