Your first call

Make an API key, then list your lines with one request.

You need a Minimus panel (release 2026.11.20 or later) and an account on it.

  1. Make an API key

    In the dashboard, open API keys in the menu and choose New key.

    • Name: what the key is for, such as Billing sync.
    • What it can do: tick Read for this first try. You can make another key with more later.

    Confirm with your password and choose Make the key. Copy the key (mk_live_…) when it is shown: it is shown once, the panel keeps only a fingerprint of it. Lost it? Revoke it and make a new one.

  2. Find your panel's address

    API calls go to your panel's address: the one you chose when you installed it, such as panel.example.com. It is not always the dashboard's address. The dashboard's Docs page shows it under API reference.

  3. Make the call

    Keep the key in an environment variable rather than in your script, then list the first five lines your account can see:

    cURL
    export MINIMUS_API_KEY='paste-your-key-here'
    
    curl 'https://panel.example.com/auth/line-users/?page_size=5' \
      -H "Authorization: Bearer $MINIMUS_API_KEY"
    Python
    import os
    import requests
    
    response = requests.get(
        "https://panel.example.com/auth/line-users/",
        params={"page_size": 5},
        headers={"Authorization": f"Bearer {os.environ['MINIMUS_API_KEY']}"},
    )
    response.raise_for_status()
    for line in response.json()["results"]:
        print(line["username"], line["line_profile"]["expire_date"])
    JavaScript
    const response = await fetch('https://panel.example.com/auth/line-users/?page_size=5', {
      headers: { Authorization: `Bearer ${process.env.MINIMUS_API_KEY}` },
    });
    if (!response.ok) throw new Error(`The panel answered ${response.status}`);
    const page = await response.json();
    console.log(page.count, page.results.map((line) => line.username));
  4. Read the answer

    Lists come a page at a time:

    {
      "count": 128,
      "next": "https://panel.example.com/auth/line-users/?page=2&page_size=5",
      "previous": null,
      "results": [
        { "id": "7d0c…", "username": "alice", "is_active": true, "line_profile": { "expire_date": "2026-12-13T12:00:00Z", "max_connections": 1 } }
      ]
    }

    count is how many lines your account can see in all. Follow next for the following page. How lists, filters and pages work.

Next

Common tasks

Create and extend a line, restart a stream, give credits.

API reference

Every call, with what it takes and what it answers.