Get started with Cloud API

Every Cloud API request authenticates with a bearer token. The same token works for the REST API, Terraform and Pulumi.

Create a global token

A global token sees every team in your organization.

  1. Go to Settings → API tokens → Global tokens.
  2. Enter a Token name.
  3. Pick Read & write, or Read only for a token that can make GET requests only.
  4. Click Create, then Copy.

Use the token

Send it in the Authorization header:

List your servers
curl https://us-west-2a.betterstackcloud.com/v1/servers \
  -H "Authorization: Bearer $BETTERSTACK_API_TOKEN"

Need help?

Please let us know at hello@betterstack.com.
We're happy to help! 🙏