Here's an example of how to use this API to connect to a project and do some basic things. This communicates via HTTP via the nextjs api.
NOTE: This is very new and not used by anything yet.
Set some environment variables. You'll have to get the API_KEY from the settings of your project.
The run code in node from the shell in the current directory: