Skip to content

Developer API

Tokens and authentication

How a personal token is sent, how long it lasts, what ends it, and what it can see in a shared household.

Every request to the Developer API carries a personal token, created in Settings and sent in the Authorization header. This page covers how the token is sent, the lifetimes it can have, what has to be true before you can create one, what ends it, what it sees in a shared household, and what to do when one leaks. Overview and quickstart has the steps to create a first token.

A token is a 59-character string that starts with taiga_pat_. It acts as the person who created it, reads what they see in the app, and authorizes /api/v1 and nothing else. Taiga Finance stores only a hash of it, so the value is shown once, when you create it. Creating a token records a security event on your account and sends you an email.

Every token reads. A token also changes data only when you chose that when creating it, and the choice can’t be changed afterwards. A read-only token’s write is refused with 403 read_only_token. To give a script both, create a second token.

In the Authorization header, as a bearer token, on every request. The base URL is https://app.taiga.finance/api/v1; the examples read it from $TAIGA_API.

Terminal window
curl "$TAIGA_API/api/v1/accounts" \
-H "Authorization: Bearer $TAIGA_TOKEN"

The header is the only place a token is read. A request with no header, a token in the query string, or a value that isn’t a live token all get the same answer:

HTTP/1.1 401 Unauthorized
www-authenticate: Bearer
content-type: application/json
{
"detail": "invalid_token"
}

That one came from sending a live token as ?token= instead of in the header.

Every token expires. Expires after in the New token dialog offers 30 days, 90 days or 1 year, and 90 days is the default. A token’s row under API tokens shows Expires with its date, along with when it was created and last used.

  • Current notices accepted. While a notice, such as updated Terms of Service, waits for you in the app, a token can’t be created.
  • A recent sign-in. Creating a token checks how long ago you last proved it was you. Past that window, Settings asks for a code and then creates the token.
  • Fewer than 10 live tokens. A person holds at most 10 at once.
  • An active subscription. A household whose subscription has lapsed can’t create one.

The notice rule applies to existing tokens too. While a notice waits for you, every request with any of your tokens is refused until you review it in the app. The token itself isn’t ended, and it works again once you have:

HTTP/1.1 403 Forbidden
content-type: application/json
{
"detail": "notice_required"
}

In Settings › AI & Privacy, find the token in the API tokens row and click Revoke. The dialog reads Anything using it stops reading your data on its next request. Click Revoke to confirm. The script’s next request gets 401 invalid_token.

What happens Which tokens it ends Settings shows it as
You click Revoke That token Revoked
It reaches its expiry date That token Expired
You use Sign out everywhere Every token you hold Signed out
You change your sign-in email Every token you hold Signed out
You remove a sign-in method Every token you hold Signed out
You delete your account Every token you hold —

Settings lists an ended token under Ended. A token stops working too while your account isn’t active.

Undo changes on a token that changed data also ends it, at once, before it reverts what the token changed. Undo a change covers it.

What does a token see in a shared household?

Section titled “What does a token see in a shared household?”

What its owner sees in the app, and nothing more. Your own accounts and the joint ones come back in full. A partner’s account they share with you at the balance tier comes back with visibility: "balance_only". A partner’s account they keep private is absent. Couples & household visibility has the sharing rules themselves.

In a two-person household the two partners’ tokens read different lists from the same accounts:

Account Jordan’s token Casey’s token
Jordan’s own, private (Chase Sapphire, an equity grant, a brokerage) full absent
Jordan’s, shared at the balance tier (401(k), Roth IRA, one brokerage) full balance_only
Joint full, is_joint: true full, is_joint: true
Casey’s, shared at the balance tier (a checking account, 403(b), Roth IRA, student loan) balance_only full
Casey’s own, private (Capital One Venture) absent full

Jordan’s token lists 15 accounts; Casey’s lists 13. Three of Casey’s rows, unaltered: Casey’s own card, the joint checking account, and Jordan’s 401(k) at the balance tier.

{
"data": [
{
"id": "8451",
"name": "Capital One Venture",
"institution": "Capital One",
"type": "credit_card",
"currency": "USD",
"balance": -1169.05,
"balance_date": "2026-11-10",
"amount_home": -1169.05,
"fx_rate": null,
"fx_rate_date": null,
"visibility": "full",
"is_joint": false,
"archived": false,
"hidden": false
},
{
"id": "8442",
"name": "Chase Joint Checking",
"institution": "Chase",
"type": "checking",
"currency": "USD",
"balance": 12786.0,
"balance_date": "2026-11-10",
"amount_home": 12786.0,
"fx_rate": null,
"fx_rate_date": null,
"visibility": "full",
"is_joint": true,
"archived": false,
"hidden": false
},
{
"id": "8445",
"name": "Jordan 401(k)",
"institution": "Fidelity",
"type": "401k",
"currency": "USD",
"balance": 143293.14,
"balance_date": "2026-11-10",
"amount_home": 143293.14,
"fx_rate": null,
"fx_rate_date": null,
"visibility": "balance_only",
"is_joint": false,
"archived": false,
"hidden": false
}
],
"next_cursor": null,
"home_currency": "USD",
"as_of": "2026-11-11",
"zone": "UTC"
}

The other endpoints follow the same lines:

  • Transactions. A balance-only account contributes no transactions, and a partner’s private card’s rows never appear.
  • Holdings. A balance-only account is one value row with no positions.
  • Budget. A partner’s private lines fold into one rollup row.

What happens after repeated failed tokens?

Section titled “What happens after repeated failed tokens?”

Twenty requests with a malformed or dead token from one network within 5 minutes lock that network out. A network here is one IPv4 address, or one IPv6 /64. Until the window drains, every request from it is refused, a valid token’s included, with a Retry-After in seconds:

HTTP/1.1 429 Too Many Requests
retry-after: 299
content-type: application/json
{
"detail": "rate_limited"
}

A script that retries a 401 in a loop can trigger it. Stop on a 401 rather than retrying it. Limits and errors covers the other 429s.

Revoke it in Settings › AI & Privacy › API tokens. Anything holding the value is refused from its next request. There is no rotation endpoint, so create a new token and give it to the script. Check the token’s Last used date in its row to see whether it was used after the leak.

For a token that could change data, Undo changes ends it and reverts what it changed where it still can. Undo a change lists what is reverted and what is left alone.