Skip to main content
This cookbook provides practical examples for common API integration patterns. All examples require authentication - see the API Setup guide for details.

Prerequisites

Before using these examples, ensure you have:
  • An OAuth application created in your Standard Metrics settings
  • Your client_id and client_secret credentials
  • Python 3.9+ with requests library installed

Quick Start: Authentication

All API requests require a Bearer token. Here’s how to authenticate:

1. Working with Companies

Get All Portfolio Companies

Retrieve all companies in your portfolio with pagination support:

Create a New Company

Add a new company to your portfolio:

2. Fetching Metrics

Get Metrics for a Single Company

Retrieve financial metrics for a specific company:

Get Metrics for Multiple Companies

Fetch metrics across your entire portfolio:

3. Working with Documents

Fetch Company Documents

Retrieve documents associated with companies:

Upload a Document

Add new documents to the system:

4. Pushing Metrics

Submit New Metrics

Push custom metrics to Standard Metrics:

5. Complete Integration Example

Here’s a comprehensive example that combines multiple API operations:

Error Handling

Always implement proper error handling in your integrations:

Rate Limits

The API has a limit of 30 requests per 10 seconds per bearer token. For high-volume integrations, implement backoff logic:

Next Steps

  • Explore the full API Reference for detailed endpoint documentation
  • Set up MCP integration for advanced automation within Claude and other MCP clients
Need help? Visit our Support Center or contact our team for integration assistance.