Skip to main content
This capability is currently in private preview and is not yet available to all customers. Contact your Fiddler Customer Success Manager to request access.

Overview

A service account is an identity owned by your organization, not by a person. Its API keys let integrations authenticate to Fiddler. For example, an OpenTelemetry collector can send traces, and a pipeline can call the Fiddler API and Python client in the projects you choose. A personal API key acts as the person who created it, so it breaks or changes behavior when that person leaves or changes roles. Service account keys belong to the organization and carry only the permissions you grant. Use a service account when a workload, not a person, needs to send traces to Fiddler or work in your projects. Use a personal API key for your own scripts and notebooks. A service account is scoped when you create it:
  • Entire Org service accounts have capabilities, such as traces:ingest, that apply across your organization.
  • Specific Projects service accounts hold a project role, such as Project Viewer, in each project you choose. Their access comes from those roles, and what their keys can do depends on them.
Fiddler service accounts are separate from cloud-provider service accounts, such as the Google Cloud service account you use for the LLM Gateway.

Key Facts

These facts apply to every service account:
  • Fiddler shows the full key once. Anyone who has it can use everything the service account can do until you disable or revoke it.
  • The LLM Gateway rejects every service account key.
  • Fiddler doesn’t send expiration emails, so an expired key stops working without an email warning.
These facts apply to Entire Org service accounts:
  • A key can send traces to every GenAI application in your organization. You can’t limit a key to one application.
  • A key can’t read your monitored data or change settings.
These facts apply to Specific Projects service accounts. See Project-Scoped Service Accounts:
  • A key can do what its project role allows in each project you add.
  • A key can send traces only where its role allows writing to the application.

Prerequisites

  • You are an Org Admin. Only Org Admins can create and manage service accounts.
  • Fiddler has enabled service accounts for your Fiddler environment. Because this is a private preview, talk to your Fiddler contact before you move a production workload onto it.
  • You are using the new Fiddler UI. It is the default for Fiddler-hosted organizations; see the New Fiddler UI quick start. If you don’t see it, ask your Customer Success Manager.

How Service Accounts Work

Capabilities

In the create dialog, Capabilities has two parts. The Entire Org or Specific Projects choice sets where the service account applies. The capability checkboxes, such as traces:ingest, set what it can do. Choose Entire Org for a service account that sends traces to any application in your organization. Choose Specific Projects for one that works only in the projects you select, with a project role in each. You can’t change this choice after you create the service account. A capability is something a service account is allowed to do. An Entire Org service account can’t send traces until you grant it the traces:ingest capability, and its keys can use only the capabilities it has. traces:ingest is the only capability today. Capabilities apply to Entire Org service accounts. A Specific Projects service account gets its permissions from its project roles instead.

Project-Scoped Service Accounts

A Specific Projects service account holds one project role in each project you add, up to 50 projects. You choose Project Viewer, Project Writer, or Project Admin for each project. If Project Dashboard Viewer is enabled for your organization, it also appears as a fourth, read-only role that gives access to the project’s charts and dashboards only. See Role-Based Access Control for what each role allows.
  • A key from a Specific Projects service account gets the permissions of its role in each project you add. Its project access comes only from the roles you add.
  • These keys can call the Fiddler REST API and the Fiddler Python client, within the permissions of their project roles.
  • These keys can send traces only to applications in projects where the role is Project Writer or Project Admin. A Project Viewer key can’t send traces, and the traces:ingest capability doesn’t apply.
  • Project Viewer can create, edit, and delete charts and dashboards in the project.
  • Project Writer allows much more than sending traces. It can also edit and delete models, applications, and alerts in the project. Use it only when the workload needs to write.
  • Project Admin also manages the project’s access, including granting roles to other users, and changes its settings. It can delete the project once the project has no models or applications. Use it only when the workload needs that.
  • A service account with no projects holds no project role, but its keys keep some organization-level access. To stop its keys, disable the service account or its keys.
  • Every service account key can read server information. Specific Projects keys can also make a few organization-level calls, such as uploading files.
  • The roles apply to every key on the service account. To change what its keys can do, edit the service account’s projects or roles.
  • Change a service account’s project access on the Service Accounts page, not in a project’s access settings.

API Keys

Each service account can have 10 API keys by default. A key works only while the key and its service account are both active and the key hasn’t expired.

Create a Service Account

1

Open Service Accounts

Go to Settings > Access Control > Service Accounts.
The Service Accounts page in Settings, listing service accounts with their capability, creator, status, and key count

The Service Accounts page lists every service account in your organization.

2

Open the Create Dialog

Click Create Service Account.
3

Name the Service Account

Enter a Name that is unique in your organization, for example otel-collector-prod. Names start with a letter and can contain letters, digits, spaces, hyphens, and underscores (up to 128 characters). Optionally, add a Description, such as the team that owns the integration.
4

Grant a Capability or Projects

Under Capabilities, keep Entire Org selected and select traces:ingest. To limit the service account to specific projects instead, select Specific Projects and follow Limit a Service Account to Specific Projects.
The Create Service Account dialog showing name and description fields, Entire Org selected, and the traces:ingest capability checked

Entire Org with traces:ingest: the resulting keys can send traces to every application in your organization.

5

Create

In the dialog, click Create Service Account. The new service account appears in the list.
Use one service account for each workload and environment, so you can disable one integration without affecting others. Name it after the workload and environment, such as <workload>-<environment>.

Limit a Service Account to Specific Projects

In the create dialog, after you select Specific Projects:
1

Add Projects

Open the project list (Select project) and select one or more projects, up to 50. Each project you select adds a row.
2

Choose a Role for Each Project

Use the role menu on each project’s row to choose Project Viewer, Project Writer, or Project Admin. If Project Dashboard Viewer is enabled for your organization, the menu also lists it. The default is Project Viewer. Choose the lowest role that the workload needs. To remove a project, click the trash icon on its row. The tooltip reads Remove project.
The Create Service Account dialog with Specific Projects selected, two selected project chips, and two project rows, each with a role menu and a trash icon

Specific Projects selected, with two projects added and a role for each.

Then return to the last step of Create a Service Account and click Create Service Account.

Create an API Key

1

Open the Service Account

On the Service Accounts page, click the service account’s name. The detail page shows its Organizational Access (for Entire Org) or Project Roles (for Specific Projects), and its API Keys.
A service account detail page showing its access section (capabilities or project roles) and an API Keys table with key name, Key Suffix, status, and expiration date

The detail page shows each key's status, Key Suffix, and expiration. Keys that expire within 30 days show Expiring Soon.

2

Name the Key

In API Keys, click Create API Key. Enter an API Key Name that is unique within the service account. Names follow the same rules as service account names.
3

Choose an Expiration

Select 30 Days, 90 Days, or 365 Days (the default), or select Custom to enter 30 to 730 days. Choose the shortest lifetime you can rotate reliably.
The Create API Key dialog showing the API Key Name field and the Expiration dropdown

The Create API Key dialog with a name and an expiration selected.

4

Copy the Key

Fiddler shows the full key only once and can’t retrieve it later. If you lose it, create a new key.
Click Create API Key. In the API Key Created dialog, copy the key and store it in your secrets manager, then click Done.
The API Key Created dialog showing the key name, the service account, and the one-time key with a copy button

Copy the key now. Fiddler can't show it again.

Send Traces with a Service Account Key

Use the complete key, starting with fks_, in place of the access token in the OpenTelemetry quick start:
A key from a Specific Projects service account works the same way, but only for applications in projects where it has Project Writer or Project Admin. With multi-application trace routing, spans for other applications are rejected and reported in partialSuccess, not with a 403. Keep the fiddler-application-id header. The key doesn’t choose the application. To send to several applications with one key, see multi-application trace routing. To confirm that it works, send a test trace and check that it appears in the application in Fiddler. If it doesn’t, see Troubleshooting.

Use a Specific Projects Key with the Python Client or REST API

Use the complete key, starting with fks_, as the token. The key can do what its project role allows in each project you added.
For the REST API, send the key as a bearer token:
What a key can do in each project depends on its role there. See Project-Scoped Service Accounts. Calls outside the key’s role, such as another project or an organization-level resource like teams or webhooks, return 403 Forbidden. See Troubleshooting.

Manage Service Accounts

Changes usually apply on the next request, including a change to a service account’s capabilities or projects. Allow up to 5 minutes for a disable or revoke to take full effect. With multi-application trace routing, allow up to 10 minutes by default.

Rotate an API Key

Rotate keys before they expire, or on a regular schedule.
1

Create a New Key

Create a new key on the service account.
2

Update Your Integration

Put the new key in your integration, such as your collector or exporter configuration or your pipeline, then redeploy it. Confirm that it still works, for example that traces arrive or your API calls succeed.
3

Disable the Old Key

Open the old key’s ⋯ (Row actions) menu, select Disable, and confirm.
4

Revoke the Old Key

After you’re sure nothing depends on the old key, open its ⋯ menu, select Revoke, type revoke, and click Revoke API Key.

Respond to a Leaked Key

Add the fks_ prefix to your secret-scanning rules to catch leaks early. A leaked Entire Org key can read server information (version, feature flags, organization name) and list your organization’s application IDs, but it can’t read your monitored data. A leaked Specific Projects key can do everything its project roles allow in those projects, including reading monitored data. Even a Project Viewer key can change charts and dashboards. With Project Writer or Project Admin, it can also change or delete other project resources and send traces. With Project Admin, it can also manage the project’s access, including granting roles to other users, list the project’s members and the users in your organization, change settings, and delete the project once it has no models or applications. It can also make a few organization-level calls, such as uploading files. If a key might have leaked, act right away:
  1. Disable the exposed key. If you don’t know which key leaked, disable the service account instead.
  2. Create a new key and put it in your integration. A new key doesn’t work while its service account is disabled.
  3. If you disabled the service account, first disable every older key on it. Enabling a service account restores every key that isn’t disabled on its own, including the leaked one. Then enable the service account.
  4. Revoke the exposed key.
  5. Review recent traces in your applications for data you didn’t send. For a Specific Projects key, also review recent changes in its projects. For a Project Admin key, also check each project’s access list for roles you didn’t grant.

Change a Service Account

Open the service account and click Edit. You can change the name, the description, and either the capabilities (for Entire Org) or the projects and roles (for Specific Projects), then click Save. A change applies to all of the service account’s keys. An Entire Org service account with no capabilities can’t send traces. Removing all of a Specific Projects service account’s projects removes its project roles, but its keys keep some organization-level access. To stop access, disable the service account or its keys.

Disable or Enable a Service Account

You can’t delete a service account. To stop one, disable it: all of its keys stop working. Enabling it again restores the keys that are still active and unexpired. Use the service account’s row menu on the Service Accounts page, or the button on its detail page. Select Disable or Enable, then confirm.

Change a Key’s Status

Use the ⋯ menu on the key’s row. Replace keys that show Expiring Soon before they expire.

Limitations

  • You can’t change a service account between Entire Org and Specific Projects after you create it. Create a new service account instead.
  • A Specific Projects service account can hold up to 50 projects. Saving more than 50 fails with the error A project-scoped service account may hold at most 50 project grants.
  • traces:ingest is the only capability, and it applies to Entire Org service accounts.
  • An Entire Org service account key can only connect and send traces, so it can’t call the REST API or the Fiddler Python client for anything else. SDK features that call other Fiddler APIs, such as normalize_multimodal=True in the Fiddler OpenTelemetry SDK, are rejected with 403 Forbidden, and the SDK keeps the content inline.

Troubleshooting