Agent API Reference

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

This HTTP API is for scripts and tools that can’t use MCP. Assistants (ChatGPT, Claude, Cursor, Codex) should connect through the MCP server reference.

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": 499,
      "limit": 500,
      "resetAt": "2026-02-05T00:00:00.000Z"
    }
  }
}

Rate Limits

PlanDaily CallsPrice
Free500$0
Pro10,000$9.99/mo

MCP search_finances is not one of these REST calls. Free includes 50 a day. Pro includes 500 finance searches a day over MCP.

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
401—No Authorization header. Body is {"message":"Unauthorized"}
403—Key invalid, revoked or expired. Body is {"message":"Forbidden"}
404—Unknown route. Body is {"message":"Not Found"}
429RATE_LIMIT_EXCEEDEDDaily limit reached
500—Server error

Transactions

Spending

Accounts

Budgets

Subscriptions

Cash Flow

Receipts

Intelligence

Insights

Portfolio

Key Management

Ready to connect your agent?

Get Your API Key — Free