Skip to main content

Listing Endpoints - EXAMPLE SEPARATE PAGES

GET /ext/line/find?username=&password=

  • Required: username, password

Response

{
    "line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec"
}

 

New methods available after version: v1.1.22 (RC - v1.1.21-3)


 

GET /ext/lines

List All Lines

needed permission: indexLines

Filters:

  • username - exact match filter

Response

[
    {
        "line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec",
        "username": "13456yhtgrf",
        "password": "umyjntrgfe6",
        "mac_addr": "00:00:00:11:11:11",
        "owner": "billing",
        "type": "device",
        "expire_at": null,
        "is_enabled": true,
        "is_restreamer": true,
        "is_trial": false,
        "package_id": null,
        "bouquets": [1,2,3,4],
        "max_connections": 1,
        "reseller_notes": "larry's home mac"
    },
    .....
    {
        "line_id": "2823da33-9633-4ab6-99a1-38dc589aa0fd",
        "username": "9067mhtbfe",
        "password": "zaqcdejgd",
        "mac_addr": null,
        "owner": "billing",
        "type": "regular",
        "expire_at": "2024-09-12T15:19:21+00:00",
        "is_enabled": true,
        "is_restreamer": false,
        "is_trial": true,
        "package_id": 108,
        "bouquets": [2,3,6,8],
        "max_connections": 5,
        "reseller_notes": "jhon's family"
    }
]

 


 

GET /ext/lines/index

Available after v2.0.10 (RC v2.0.9-3)

List lines with pagination

needed permission: indexLines

Pagination Request Parameters: page, per_page

Filters:

  • username - exact match filter

Response

{
    "status": "success",
    "data": [
        "pagination": [
            "first_page": 1,
            "last_page": 3,
            "current_page": 2,
            "per_page": 50,
            "total": 133,
        ],
        "items": [{
            "line_id": "1734da33-9723-4df6-90d1-38dc589aa0ec",
            "username": "13456yhtgrf",
            "password": "umyjntrgfe6",
            "mac_addr": "00:00:00:11:11:11",
            "owner": "billing",
            "type": "device",
            "expire_at": null,
            "is_enabled": true,
            "is_restreamer": true,
            "is_trial": false,
            "package_id": null,
            "bouquets": [1,2,3,4],
            "max_connections": 1,
            "reseller_notes": "larry's home mac"
            },
            ...
        ],
    ]
}