> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Pydantic Logfire with Query API — Read Token – StackOne Hub

> Link a Pydantic Logfire account in the StackOne Hub using Query API — Read Token. End-user guide to authorize the integration and start using Pydantic Logfire actions.

## Read token

A read token gives read-only access to the telemetry of one Logfire project. Create it in the settings of the project you want to query.

**1. Start a new read token**

Sign in to the [Logfire EU console](https://logfire-eu.pydantic.dev), or the [Logfire US console](https://logfire-us.pydantic.dev) for the US region. On the **Organization overview** page, click **Settings** next to the project you want to query.

<ul>
  <li>In the sidebar, click **Security & access**.</li>
  <li>Click the **Read tokens** tab.</li>
  <li>If the **Read tokens are now API keys** dialog opens, click **Continue to read tokens**.</li>
  <li>Click **New read token**.</li>
</ul>

![Logfire Read tokens tab with the New read token button highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/read_token-config-new-read-token.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=70409df11b6111d02ed1ef7be33c0e3c)

**2. Create the read token**

Fill in the **New read token** form.

<ul>
  <li>**Description**: `StackOne Integration`</li>
  <li>**Expiration**: **No expiration**, or the date your security policy requires</li>
  <li>Click **Create token**.</li>
</ul>

![New read token form with the Description, Expiration and Create token controls highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/read_token-config-create-token.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=b7f72dd8dc7d04a87cac79a8634b6def)

**3. Copy the read token**

Click the copy button next to the token, then copy the **Read Token** across.

<ul>
  <li>The token is shown only once and cannot be retrieved later.</li>
</ul>

![The new read token with its value hidden and the copy button highlighted](https://mintcdn.com/stackone-60/s0QxvG4ws_B2dHPY/connectors/logfire/images/read_token-config-copy-token.png?fit=max\&auto=format\&n=s0QxvG4ws_B2dHPY\&q=85\&s=0cd76f1a6d17306ce227eac2f0a53444)

## Find your API region URL

The **API Region URL** matches the region of the Logfire console you signed in to.

<ul>
  <li>Format: `https://api-{region}.pydantic.dev`</li>
  <li>Example: if your console is `https://logfire-us.pydantic.dev`, your API Region URL is `https://api-us.pydantic.dev`</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.