"list" command not working in the ubus api

I recently noticed that in current version of the router firmware ‘list’ command isn’t recognized by the current version of the router firmware. I’d send a POST request to /ubus with content:

{"jsonrpc": "2.0", "id": 4, "method": "list", "params": ["<session ID>", "hostapd.*"]}

And the response would be:

{'error': {'code': -32601, 'message': 'Method not found'}, 'id': 4, 'jsonrpc': '2.0'}

Router: RUTX10
Firmware version: RUTX_R_00.07.06


It seems you’ve used the incorrect request type. The POST method is typically used to send data to the server for creating or updating a resource. However, in this case, you should use the GET request because command “ubus list” is not writable. Instead, it provides a comprehensive list of all objects registered within the namespace.

Best regards,


Dear Marijus,

Could you provide some sort of documentation or examples on how to call the UBUS RPC API with HTTP GET requests? Neither the Teltonika, nor the OpenWrt docs seem to mention the need to do HTTP GET requests.

Also, every library I’ve seen that deals with UBUS RPC, seems to use exclusively the HTTP POST method. (See this one or that one which explicitly uses HTTP POST requests with the list method in UBUS.)


For improved documentation and a user-friendly experience, we recommend exploring our router’s API at: https://developers.teltonika-networks.com/

This topic was automatically closed after 15 days. New replies are no longer allowed.