My Finance
My FinanceFinancial Assistant
DashboardTransactionsBudgetAI CoachSettings

API Documentation

Interactive documentation for the Security API

API Key (for testing)

Your API key is only used for testing and is not stored.

Endpoints

Select an endpoint from the list to view documentation

Webhook Integration

Signature Verification

All webhook deliveries include an X-Webhook-Signature header containing an HMAC-SHA256 signature. Verify this signature to ensure the webhook came from our system.

Node.js Example:

const crypto = require('crypto');

function verifyWebhookSignature(payload, signature, secret) {
  const expectedSignature = crypto
    .createHmac('sha256', secret)
    .update(JSON.stringify(payload))
    .digest('hex');
  
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expectedSignature)
  );
}

// In your webhook handler:
app.post('/webhook', (req, res) => {
  const signature = req.headers['x-webhook-signature'];
  const payload = req.body;
  const secret = 'YOUR_WEBHOOK_SECRET';
  
  if (verifyWebhookSignature(payload, signature, secret)) {
    // Signature valid - process the webhook
    console.log('Event:', payload.event);
    res.status(200).send('OK');
  } else {
    // Invalid signature
    res.status(401).send('Invalid signature');
  }
});

Available Events

anomaly.detected

Triggered when a security anomaly is detected

lockout.triggered

Triggered when an account is locked out

breach.detected

Triggered when a security breach is detected

login.success

Triggered on successful login

login.failed

Triggered on failed login attempt

Rate Limiting

API requests are rate limited per API key. Rate limit information is included in response headers:

  • X-RateLimit-LimitMaximum requests per minute
  • X-RateLimit-RemainingRemaining requests in current window
  • X-RateLimit-ResetUnix timestamp when the rate limit resets

When rate limit is exceeded, the API returns a 429 Too Many Requests response with a Retry-After header indicating when to retry.

Welcome to My Financial Assistant! 🎉

Step 1 of 520%

Welcome to My Financial Assistant! 🎉

Your complete financial management platform

Track transactions, manage budgets, pay off debts, save for goals, and grow your investments—all in one place. Let's take a quick tour of the key features.