Finhub Playground
Explore and test the FinHub APIs in the sandbox environment
Finhub Playground
The FinHub Playground allows you to explore and test the FinHub APIs in a safe sandbox environment. This guide walks you through the key steps to get started with the playground.
Getting Started
Before you begin exploring the APIs, you need to authenticate your sandbox tenant. The playground provides a comprehensive environment to test all FinHub API capabilities without affecting real data or transactions.
Tenant Sandbox Login
The first step in using the playground is authenticating your sandbox tenant. This process uses OAuth 2.0 Client Credentials flow to obtain an access token.
API Endpoint
Required Headers
Name | Description | Example |
---|---|---|
sec-ch-ua-platform | Client platform information | Windows |
X-Forwarded-For | Client IP address | 127.0.0.1 |
User-Agent | Client user agent information | Mozilla/5.0 (Windows NT 10.0; Win64; x64) |
X-Tenant-ID | Tenant identifier for multi-tenant operations | 1234567 |
Content-Type | Media type of the request body | application/json |
Request Body
Field Descriptions
Field | Description | How to Obtain |
---|---|---|
username | Your sandbox username | Provided in the welcome email after sandbox activation |
password | Your sandbox password | Provided in the welcome email after sandbox activation |
customerId | Your client ID | Available in the Developer Portal under API Access |
customerSecret | Your client secret | Available in the Developer Portal under API Access |
accountType | Type of account (b2b or b2c) | Depends on your integration type |
Response
A successful authentication will return an OAuth 2.0 token response:
Token Usage
After obtaining the access token, include it in the Authorization
header of all subsequent API requests:
Available Sandbox Clients
The sandbox environment provides pre-configured client accounts for testing. You can retrieve the list of available sandbox clients using the following endpoint:
This will return a list of available sandbox client names that you can use for testing.
Playground Features
The FinHub Playground offers several features to help you test and develop your integration:
1. API Explorer
Browse and test all available API endpoints directly from the Developer Portal. The API Explorer provides:
- Interactive documentation
- Request builders
- Response viewers
- Code samples in multiple languages
2. Test Data Generation
Generate test data for various scenarios:
- Create test customers
- Generate test transactions
- Simulate different financial events
3. Webhook Testing
Test webhook integrations by:
- Triggering test events
- Viewing webhook payloads
- Verifying webhook signatures
4. Error Simulation
Simulate various error conditions to test your error handling:
- Authentication failures
- Validation errors
- Business rule violations
- System errors
Playground Limitations
While the playground provides a comprehensive testing environment, be aware of these limitations:
- Daily transaction limits
- Simulated external integrations
- Periodic data resets
- Limited historical data
Best Practices for Playground Testing
- Start Simple: Begin with basic API calls before moving to complex scenarios
- Test Error Handling: Deliberately trigger errors to test your error handling
- Use Test Accounts: Don’t use real customer data in the sandbox
- Monitor Rate Limits: Be aware of API rate limits in the sandbox
- Keep Tokens Secure: Even in the sandbox, practice good security by not exposing tokens
Next Steps
- API Reference - Browse the complete API reference
- Integration Guide - Follow the step-by-step integration guide
- Authentication - Learn more about the authentication process