Connecting

#

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.

# Install the 'sf' CLI
curl -fsSL https://sfcompute.com/cli/install | bash
 
# Login to your account
sf login

Making a token

#

You can make an API token from the command line.

sf tokens create

Finally, you can start using the API, by passing the token as a Bearer token in the Authorization header.

curl --request GET \
  --url https://api.sfcompute.com/v0/orders
  --header 'Authorization: Bearer <token>'

To see the full API reference, see the API Reference.