Platform Partner Subuser API

Introduction

The Subuser API enables platform partners to programmatically manage their customers’ access to Logfire’s log management features. This integration allows you to create dedicated logging environments for each of your customers while maintaining centralized control through your partner account.

Key Concepts

  • Subuser Account: A restricted account created for your customer that provides access to Logfire’s features
  • External ID: Your unique identifier for each customer that maps to their Logfire subuser account
  • Team Isolation: Each subuser gets their own team with isolated access to their logs
  • Automatic Source Configuration: Pre-configured log sources for each subuser

Use Cases

  1. Customer Onboarding

    • Automatically create Logfire accounts when customers sign up on your platform
    • Set up isolated logging environments for each customer
  2. Access Management

    • Update customer details as needed
    • Manage customer access to logging features
    • Remove access when customers leave your platform
  3. Log Management

    • Map incoming logs to specific customers using external IDs
    • Maintain separation of customer data
    • Control resource allocation per customer

Before You Begin

Ensure you have:

  • A valid platform partner account with Logfire
  • Authentication credentials (see Partner Authentication)
  • Your partner profile ID
  • Unique external IDs for your customers