WealthGuard API
Integrate powerful personal finance, investment tracking, and wealth management capabilities into your applications with our RESTful API.
Overview
The WealthGuard API provides programmatic access to financial data, portfolio management, goal tracking, and advanced analytics. Our API follows REST principles and returns JSON-encoded responses.
# Retrieve authenticated user accounts curl https://api.wealthguard.com/v1/accounts \ -H "Authorization: Bearer sk_live_wg_8f9a2b3c4d5e6f7g8h9i0j" \ -H "Content-Type: application/json"
Authentication
WealthGuard uses API keys to authenticate requests. You can view and manage your API keys in the Developer Dashboard. All API requests must include your secret key in the `Authorization` header.
Never expose your secret API keys in client-side code or public repositories. For frontend applications, use our published JWT tokens or implement a secure proxy.
Base URL & Versions
- Production:
https://api.wealthguard.com/v1 - Sandbox:
https://api-sandbox.wealthguard.com/v1
Endpoints
Returns a list of all financial accounts linked to the authenticated user.
| Parameter | Type | Description |
|---|---|---|
typeoptional | string | Filter by account type: checking, savings, investment, credit |
limitoptional | integer | Number of records to return (default: 20, max: 100) |
cursoroptional | string | Cursor for pagination |
Records a new financial transaction and automatically categorizes it using ML.
| Parameter | Type | Description |
|---|---|---|
account_idrequired | string | ID of the account the transaction belongs to |
amountrequired | number | Transaction amount in cents |
currencyrequired | string | ISO 4217 currency code (e.g., USD, EUR) |
daterequired | string | ISO 8601 timestamp of the transaction |
descriptionoptional | string | Transaction description or merchant name |
Retrieves the current portfolio allocation, performance metrics, and asset breakdown.
Creates a new financial goal with target amount, deadline, and tracking preferences.
Error Handling
WealthGuard uses conventional HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success, 4xx range indicate client errors, and 5xx range indicate server errors.
Rate Limits
API requests are limited based on your subscription tier. When you exceed the rate limit, the API will return a `429 Too Many Requests` response with a `Retry-After` header.
- Free Tier: 100 requests/minute
- Professional: 1,000 requests/minute
- Enterprise: Custom limits (contact sales)