Community discussions

MikroTik App
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

SwOS api

Sun Feb 21, 2021 5:25 pm

With CSS610 as a new product, any plans for SwOS API ?
 
chubbs596
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Fri Dec 06, 2013 6:07 pm

Re: SwOS api

Thu Mar 18, 2021 10:21 am

We also want to see a API for SwOS and SwOS lite, and possible telnet/ssh access aswell
 
BuGless
just joined
Posts: 12
Joined: Wed Jul 20, 2022 6:54 pm
Location: The Netherlands

Re: SwOS api

Thu Jul 21, 2022 9:03 am

Actually, SwOS already has an API.
All we need is documentation for it (or reverse engineer it).
To wit:

URL: /link.b

The Authorization header uses a token to keep the session going.

The payload appears to be JSON (with a misleading text/plain MIME-type).
In that JSON payload I can already recognise:
en: Bitmask for all enabled ports. Disabled ports have a zero bit. Ports are numbered little endian style (i.e. bit zero = port 1).
fctc: Bitmask for flow-control TX. Ports are numbered the same as for en.
nm: Port names, normal array, ports are numbered normally.
fctr: Bitmask for flow-control RX. Same bitmask as other fields.
etc.

It's really easy to reverse engineer (which is a plus).
How about it, Mikrotik, and release the documentation for it?
 
User avatar
f008600
just joined
Posts: 4
Joined: Tue Mar 05, 2024 10:33 pm
Location: Germany
Contact:

Re: SwOS api

Mon Mar 11, 2024 11:51 am

How about it, Mikrotik, and release the documentation for it?
Any plans to document the binary/json API?
It seems that this API is in constant change (or SwOS Lite differs completely from SwOS, API wise).

Who is online

Users browsing this forum: No registered users and 6 guests