Intelligence

Renewal Check

Check if a credit card is worth renewing.

fast mode: Deterministic renewal verdict using calculate_renewal_verdict(). Returns RENEW, DOWNGRADE, or CANCEL_AND_REPLACE verdict with downgrade and replacement options.

verbose mode: Same deterministic verdict plus AI-generated detailed analysis, retention tips, and timing guidance (uses asyncio.to_thread for Gemini call).

post/api/v1/intelligence/renewal

Request

  • Base URL: https://kokofinance.net (the document declares no server; this is the origin it was published from)
  • URL: https://kokofinance.net/api/v1/intelligence/renewal
  • Auth: API key in header X-API-Key

Query parameters

mode'fast' | 'verbose'

Response mode for intelligence endpoints.

fast=deterministic <100ms, verbose=AI narrative 3-10s

Headers

authorizationstring nullable

Request body

card_namestring required

Name of the card to check for renewal

card_idinteger nullable

Matched card ID if known

acquired_datestring nullable

Date card was acquired (YYYY-MM-DD)

portfolio_card_namesstring[] nullable

Other cards in portfolio for context

benefit_selectionsstring[] nullable

Individual benefit keys the user uses (e.g. ['uber', 'dining', 'admirals_club']). Selected at 100%, unselected at 0%.

benefit_categories_usedstring[] nullable

Benefit categories the user uses (e.g. ['dining_credit', 'lounge_access']). benefit_selections provides finer control.

Example request

{
  "card_name": "Chase Sapphire Preferred",
  "params": {
    "primary_goal": "travel",
    "spending": {
      "dining": 400,
      "groceries": 500,
      "travel": 300
    }
  }
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.