[SOLVED] Getting branches with API for a given repo

Hi guys,
I need an help. I have read documentation but I can’t figure out how to do it.
I am using this version:

Application version
    0.13.0+dev
Git version
    2.24.4
Go version
    go1.14.15
Build time
    2021-03-18 12:18:22 UTC
Build commit
    N/A 

I can already use API and get repos for my organizations.
What I can’t do is: for a single report I want to get all branches.
For examples, I want to list all branches of terraform repo I can’t get JSON reponse:

[email protected]:/data/DATA$ curl -s http://mgcl1n1:3000/api/v1/orgs/ict/repos?access_token=${ACCESS_TOKEN}
[{"id":16,"owner":{"id":7,"username":"ict","login":"ict","full_name":"","email":"","avatar_url":"http://mgcl1n1:3000/avatars/7"},"name":"terraform","full_name":"ict/terraform","description":"","private":true,"fork":false,"parent":null,"empty":false,"mirror":false,"size":553492480,"html_url":"http://mgcl1n1:3000/ict/terraform","ssh_url":"[email protected]:ict/terraform.git","clone_url":"http://mgcl1n1:3000/ict/terraform.git","website":"","stars_count":0,"forks_count":0,"watchers_count":2,"open_issues_count":0,"default_branch":"master","created_at":"2021-02-18T15:20:49Z","updated_at":"2021-02-18T15:20:49Z","permissions":{"admin":true,"push":true,"pull":true}},{"id":7,"owner":{"id":7,"username":"ict","login":"ict","full_name":"","email":"","avatar_url":"http://mgcl1n1:3000/avatars/7"},"name":"rust","full_name":"ict/rust","description":"","private":true,"fork":false,"parent":null,"empty":false,"mirror":false,"size":65536,"html_url":"http://mgcl1n1:3000/ict/rust","ssh_url":"[email protected]:ict/rust.git","clone_url":"http://mgcl1n1:3000/ict/rust.git","website":"","stars_count":0,"forks_count":0,"watchers_count":2,"open_issues_count":0,"default_branch":"master","created_at":"2021-01-30T16:02:59Z","updated_at":"2021-01-30T16:02:59Z","permissions":{"admin":true,"push":true,"pull":true}}]

I have tried multiple options:

http://mgcl1n1:3000/api/v1/orgs/ict/repos/ict/terraform/branches?access_token=blablabla
http://mgcl1n1:3000/api/v1/orgs/ict/repos/terraform/branches?access_token=blablabla

no one is working.
What is the correct call?

I found it.
The correct endpoint is the following:

curl -s http://mgcl1n1:3000/api/v1/repos/ict/terraform/branches?access_token=${ACCESS_TOKEN}