# Get started with Uptime API

![uptime.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/c3832ca5-130f-4e8a-fee7-a40cba606100/lg1x =1500x507)

## How Uptime API works

Our API follows the [JSON:API](https://jsonapi.org/) specification.  

API requests to the Uptime API are authorized using the [Bearer Authentication standard](https://swagger.io/docs/specification/authentication/bearer-authentication/). Simply include an `Authorization: Bearer $TOKEN` header in your requests.  

## Get a global API token

A **global API token** is a token valid across all your teams, for managing anything within Better Stack.

- Go to [Better Stack → API tokens](https://betterstack.com/settings/global-api-tokens ";_blank").
- Copy existing or create new tokens in **Global API tokens** section.

![Global API Token](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/267e3eb0-5de4-45dd-c830-7ddad6cdc900/lg2x =3288x1214)

## Get an Uptime API token  

An **Uptime API token** is a team-scoped token for managing your Uptime resources. You can get a separate API token for each of your teams.

- Go to [Better Stack → API tokens -> Team-based tokens](https://betterstack.com/settings/api-tokens/0 ";_blank").
- Select your team.  
- Copy an existing token or create a new one in the **Uptime API tokens** section.  

![Screenshot of Uptime API tokens](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/6043d404-4538-4b2c-1b60-d61953332200/lg1x =2052x558)  

## Terraform support

You can manage your Better Stack Uptime resources using [Terraform](https://betterstack.com/docs/getting-started/integrations/terraform/).

## Have any questions?  

Check out our easy-to-navigate [Frequently Asked Questions](https://uptime.betterstack.com/faq).  

### Haven't found what you were looking for?  

Reach out to us at **hello@betterstack.com**.  
We’ll get back to you as soon as we can, typically within a few hours. 🙏  
Thank you!
