Peplink API captive portal list is empty

Hello,
I’d like to develop a function to authorize a certain MAC address to access internet without having to log in the captive portal. In the interface, I add the mac address in the captive portal configuration. I do this like this :

But I want to do it programatically, I guessed that was with the peplink API : /rest/o/{organization_id}/g/{group_id}/d/{device_id}/cp/{cp_id} Update a device level captive portal

But when I use : /rest/o/{organization_id}/g/{group_id}/d/{device_id}/cp Get a device’s captive portal list,
I have an empty result whereas my device has captive portals.

I tried to get captive portal list on a group level too but it’s also empty.

So my question are :
Is there another way to add specific MAC addresses passthrough ?
Why peplink api returns an empty array for captive portals list ?

Thanks!

1 Like

According to your provided screenshot, you should be referring to the captive portals created locally on the device’s web admin. As IC2 does not manage them, that’s why the IC2 API does not return them to you. The API just returns captive portals that are created on IC2.

1 Like

I don’t see any place to create a captive portal in the IC2 interface. How do I do this ?

I don’t see any place to create a captive portal in the IC2 interface. How do I do this ?

Under Network Settings:

21

3 Likes