To connect to the REST API, you'll first need to generate an API token. You can do so from the command line. First, install the CLI and login.
You can make an API token from the command line.
Finally, you can start using the API, by passing the token as a Bearer token in the Authorization header.
To see the full API reference, see the API Reference.