# Get started with Telemetry API

![logs.png](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/6640b1bb-f1e3-4baf-0e14-781dac9d6000/lg2x =1500x507)

## How Telemetry API works

Our API follows [JSON:API](https://jsonapi.org/) specification. Generate a client or import the API into Postman with its [OpenAPI document](https://betterstack.com/openapi/latest/telemetry.json ";_blank").

API requests made to Better Stack API are authorized using a [Bearer Authentication standard](https://swagger.io/docs/specification/authentication/bearer-authentication/). That means you'll only need to add a header with `Authorization: Bearer $TOKEN` to 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 → Global tokens](https://betterstack.com/settings/global-api-tokens ";_blank")
- Copy an existing token or create a new one in the **Global API tokens** section.

With a global API token, pick the team with the `team_id` parameter, for example `t123`. Get the IDs of all your teams via [List all teams](https://betterstack.com/docs/uptime/api/teams/list/).

![Global API tokens](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/dcd0ca22-77b8-4be5-3128-8e4063271000/orig =3180x1068)

## Get a Telemetry API token

A **Telemetry API token** is a team-scoped token for managing all your Telemetry resources, including [Errors](https://betterstack.com/docs/errors/). 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 labeled **Telemetry**, or create a new one with **Telemetry** selected.

![Team-based tokens](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/4ad61f9e-d16f-4ab0-e288-3848d1bd5100/lg1x =3180x1014)

## Terraform support

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

## Have any questions?
  
Please feel free to message us at hello@betterstack.com.  
We'll get back to you as soon as we can, typically within a few hours. 🙏   
Thank you!
