Maurizio,
You could use the Apstra Terraform Provider for this. Or you can find the information in the API Explorer: 
------------------------------
Bill Wester
------------------------------
Original Message:
Sent: 11-15-2022 12:37
From: Maurizio Del Vecchio
Subject: apstra api inspector
Hi, I would like to add BGP Peering (IP Endpoint) and relative routing policy to existing connetivity template via api. I tried to use google inspector tool to gather the relevant post/patch call from the webbrowser as suggested here CEC Juniper Community, but with no success. Anybody knows how to get the relevant api calls while using the web gui?
------------------------------
Maurizio Del Vecchio
------------------------------