FYN/Agent API Docs

Agent API Reference

Base URL: https://api.fyn.fyi/v1/agent

Authentication

All agent data endpoints require an API key sent as a Bearer token:

Authorization: Bearer fyn_ak_your_key_here

Generate keys at Settings > Agent Access. Key management endpoints (generate, list, revoke, rotate) use FYN JWT auth instead.

Quick Example

curl -s https://api.fyn.fyi/v1/agent/transactions/recent?limit=5 \
  -H "Authorization: Bearer $FYN_API_KEY"
{
  "success": true,
  "data": {
    "transactions": [...]
  },
  "meta": {
    "plan": "free",
    "rateLimit": {
      "remaining": 49,
      "limit": 50,
      "resetAt": "2026-02-05T00:00:00.000Z"
    }
  }
}

Rate Limits

PlanDaily CallsRAG QueriesPrice
Free5010$0
Pro2,000500$9.99/mo

Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset) are included in every response. Exceeding the limit returns a 429 with an upgrade URL.

Error Format

{
  "success": false,
  "error": {
    "message": "Daily API limit reached.",
    "code": "RATE_LIMIT_EXCEEDED",
    "upgrade_url": "https://fyn.fyi/upgrade"
  }
}
StatusCodeDescription
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENFeature not on current plan
404NOT_FOUNDResource not found
429RATE_LIMIT_EXCEEDEDDaily limit reached
500INTERNAL_ERRORServer error

Transactions

Spending

Accounts

Budgets

Subscriptions

Cash Flow

Receipts

Intelligence

Insights

Recommendations

Portfolio

Key Management

Ready to connect your agent?

Get Your API Key — Free