Skip to main content

Get the bounded context for AI transaction categorization

Returns up to ten requested Studio transactions, at most ten matching
previously categorized examples, and up to 100 existing general or
finance tags. The server does not send account catalogs or unrelated
ledger rows.

1 min read
post/finance/profiles/{studioId}/transactions/ai/context
Request example
Response
post/finance/profiles/{studioId}/transactions/ai/context

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Studio identifier used for authorization and operation scope.

Body

application/json
transactionIdsstring[]required#

Items: 1–10, unique

Responses

application/json
Categorization context.
dataobjectrequired#
Show child attributes
transactionsobject[]required#

Items: max 10

Show child attributes
idstringrequired#
studioIdstringrequired#
typeenum<string>required#
Options:incomeexpensetransfer
amountCentsintegerrequired#
occurredAtstringrequired#
fromAccountIdstring#
toAccountIdstring#
namestring#
notestring#
tagIdstring#
debtIdstring#
savingsGoalIdstring#
recurringRuleIdstring#
recurringPeriodKeystring#
recurringManualOverrideboolean#
isPaidboolean#
revisionintegerrequired#

Range: >= 1

createdBystringrequired#
createdAtstringrequired#
updatedAtstringrequired#
examplesobject[]required#

Items: max 10

Show child attributes
descriptionstringrequired#
tagIdstringrequired#
tagsobject[]required#

Items: max 100

Show child attributes
idstringrequired#
namestringrequired#
descriptionstring#
domainScopeenum<string>required#
Options:generalfinance
isFavoritebooleanrequired#
linkCountintegerrequired#

Range: >= 0

request_idstring#