Skip to main content
A project-scoped key only ever reads the project it was created in.

Project API key

Create the key in the settings of the project you want to connect.

1

Start a new API key

Sign in to the Logfire EU console, or the Logfire US console for the US region. Open the project, then click Project settings in the breadcrumb.

  • In the sidebar, click API keys.
  • Click + New API key.
Logfire project settings API keys page with the New API key button highlighted
2

Configure and create the key

Enables actions: Create Alert, Create Dashboard, Create Project Write Token, Create Variable, Create Variable Type, Delete Alert, Delete Dashboard, Delete Project Write Token, Delete Variable, Expire Project Write Token, Get Alert, Get Dashboard, Get Project Info, Get Query Schemas, Get Read Token Info, Get Trace, Get Variable By Name, Get Variable Type By Name, Get Variables Config, List Alerts, List Dashboards, List Exceptions, List Project Write Tokens, List Projects, List Services, List Variable Types, Query Records (SQL), Rotate Project Write Token, Search Records, Update Alert, Update Dashboard, Update Project, Update Variable

Fill in the New API key form. The Project field is fixed to the current project.

  • Permissions: tick Read and Manage, or expand Advanced and tick only the scopes listed
  • Expiration: No expiration, or the duration your security policy requires
  • Click Create API key.
Project-scoped New API key form showing the fixed Project field and the permission categories
3

Copy the API key

Copy the API Key across.

  • The key is shown only once and cannot be retrieved later.

Find your API region URL

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

  • Format: https://api-{region}.pydantic.dev
  • Example: if your console is https://logfire-us.pydantic.dev, your API Region URL is https://api-us.pydantic.dev
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.