Get the History via a Single dynamic requests (API)

Hi there,

Is it possible to get a history list (txt or json) via a single dynamic requests (API) ?

Or if not, maybe get the export CSV by the same way ?

I saw that it's possible to get a log file this way : http://localhost:3344/printer/log/<slug>?a=download&sess=<session key>&l=<log name>

And that works pretty fine...

Thanks in advance,


  • Yes, it is possible. The command is just not documented.

    Action is historyList and required parameter are:
    start: 0,
    limit: 50,
    slug: slug
    uuid: '',
    allPrinter: false
    } uuid needs to be there but is not used. Set limit = 0 to get all entries, otherwise you get the newest x extries starting at start.
  • Hello,

    Thank you for your answer.

    I have tried these two syntaxes :

    But in both case, I receive this message : Requested file not found.
    Our Repetier Server version is 0.86.2

    Is there something wrong in my syntax ?

    Best regards,
  • Yes that does not work. It is a websocket command, not a direct link command. Read
    especially how to issue websocket commands directly. All params go into the data parameter which is the json string in url encoded form.
  • Great ! It works. Thank you.
  • edited October 2021
    I have a problem retrieving the history via api call
    I followed the directions but I always get: {"list": []} I don't understand where I'm wrong
    I have Repetier Server Pro 1.2.0
    the request I send is: <MyAPI-KEY>

  • Yes, you have limit = 0 so you want the first 0 entries. Increase limit to the number of hits you want.
  • I tried to bring it to 10 but I have the same result
    if I look from the web interface in the history I have 4 items
  • instead if I send:
    i get this:
  • If you open debug tools, reload and go to network and select the websocket. If you set filter to historyList and go to function in gui you see how it gets called.

    But when I decode your data part I get

    which is no valid json. Valid json would be

    See the double quotes for strings and names!
  • edited September 2022
    I'm trying to use historyList directly but keep getting the return "error":"unknown printer"

    This is the http request I'm using:


    The data JSON for this request is supposed to be:

        "start": 1,
        "limit": 100,
        "slug": "prusa_1",
        "uuid": "",
        "allPrinter": true

    Am I missing something obvious?  Any advice would be greatly appreciated!
  • Comparing with what gui sends start should be 0 and "page":0 for first 50 is missing. Assuming prusa_1 is the correct slug shown also in url that might be what is missing causing the error. If not, let me know and I double check.
  • edited September 2022
    Thanks for getting back to me so quickly.  It turns out the issue was the slug is actually "Prusa_1" rather than "prusa_1", in the first part of the request URL (not the data).  I didn't think to check if it was case sensitive before.  I appreciate the help!
Sign In or Register to comment.