Beginner on How to setup a mac time limited hotspot

Hi everyone !

I`m new to MikroTik world, and i’d like to setup a very simple hotspot router with the following capabilities:

  • When a new wifi client tries to connect, system will verify in a online API backend if that MAC address is allowed to access network (it should be pre-registered), and if so, for how long.
  1. If client is registered it will allow internet connection with a certain bandwidth limit (~200 kbps). When pre-determined time for that cliente expires they should be disconnected.
  2. if client not registered it will be redirected to a fixed local page with instructions

Can you tell me where do i start to look, or where can i get examples of something like that ?

Should i write a script in python for this ? What are the language options ?

Any help is appreciated, thanks !