Help regarding GenieACS API

Hello Everyone! I am new here and need some help. I am trying to get help regarding GenieACS API. I tried my best to work with API after reading the online documentation but could not establish the connection with GenieACS via API. I am currently using the Curl method to get connected with GenieACS. I used this command from ubuntu command line curl -X GET -i http://my_genieacs_ip:3000/devices/
and got following response
HTTP/1.1 404 Not Found
X-Config-Snapshot: 5d158f31e996c72a1c13acb17
GenieACS-Version: 1.2.13+240606fc80
Vary: Accept-Encoding
Content-Type: text/plain; charset=utf-8
Content-Length: 9
Date: Sun, 01 Sep 2024 01:20:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5

I tried this too

curl -X GET -u admin:admin http://my_genieacs_ip:3000/devices/

and got “Not Found” response

I also tried
curl -X GET -u admin:admin http://my_genieacs_ip:3000/api/devices/

and got
“Forbidden”
and tried this too
curl -X GET -i http://my_genieacs_ip:3000/api/devices/
and got following

HTTP/1.1 403 Forbidden
X-Config-Snapshot: 5d158f31e996c72a1c13acb17
GenieACS-Version: 1.2.13+240606fc80
Vary: Accept-Encoding
Content-Type: text/plain; charset=utf-8
Content-Length: 9
Date: Sun, 01 Sep 2024 01:25:20 GMT
Connection: keep-alive
Keep-Alive: timeout=5

So I need your help to get started with GenieACS API. Thanks in advance

Why are you querying the UI? You need to query the NBI, which by default is on port 7557