Retrieves the user’s financial transaction history within a specific period with intelligent filtering and automatic categorization. Supports filtering by account type, transaction type, category, amount ranges, and natural language queries via clientMessage parameter. Applies two processing stages: 1) LLM-powered intelligent filtering (when clientMessage is provided), 2) Automatic transaction categorization (always applied). Supports two response formats: ‘raw’ (default) for unprocessed data, and ‘structured’ for organized data with groupings and summaries. Requires API key for authentication and active subscription.
GET /tools/api/get-transactions retorna o histórico de transações financeiras do usuário autenticado com filtragem inteligente e categorização automática. Possui duas funcionalidades avançadas:
clientMessage para filtrar transações com linguagem naturalBearer sk-your-api-key-hereformat:format=raw (padrão): Array com transações financeiras brutasformat=structured: Objeto com transações organizadas, agrupamentos e resumosformat=structured, o campo data contém um objeto com:
200: Sucesso - Transações retornadas400: Parâmetros inválidos401: Erro de autenticação ou assinatura500: Erro interno do servidor"gastos com alimentação" - Encontra transações de restaurantes, supermercados, etc."transações acima de 100 reais" - Filtra por valor automaticamente"pagamentos do mês passado" - Combina período e tipo de transaçãoformat=raw (padrão): Retorna array de transações brutas, ideal para processamento personalizadoformat=structured: Retorna dados organizados com:
format=structured para análises financeiras avançadas.API key in Bearer token format. Example: Bearer sk-your-api-key-here
Start date for filtering Start date for filtering (YYYY-MM-DD format)
End date for filtering End date for filtering (YYYY-MM-DD format)
Categories to filter by (comma-separated) Comma-separated list of category names to filter by
Minimum amount to filter by
Maximum amount to filter by
Account type to filter by
BANK, CREDIT, INVESTMENT, LOAN Account subtype to filter by
CHECKING_ACCOUNT, SAVINGS_ACCOUNT, CREDIT_CARD, PAYMENT_ACCOUNT Transaction statuses to include (comma-separated) Comma-separated list of transaction statuses to include (POSTED, PENDING)
Response format type (default: raw) Response format: 'raw' returns unprocessed transaction data (default), 'structured' returns organized data with groupings, summaries, and category breakdowns.
raw, structured Intelligent filter message for LLM-powered transaction filtering Natural language message to apply intelligent filtering using LLM. When provided, filters transactions based on the intent expressed in the message (e.g., 'show me food expenses', 'transactions over 100 reais', 'payments to supermarkets').
List of transactions (format depends on 'format' parameter)
true
Raw transaction data (when format=raw or not specified)
Total number of raw transactions
150
Total number of transactions before intelligent filtering (only present when clientMessage is used)
250
The client message used for intelligent filtering (only present when clientMessage is provided)
"show me food expenses over 50 reais"
Descriptive message about the filtering results and processing applied
"Encontradas 150 transações (de 250 totais após aplicar filtro inteligente baseado na sua mensagem). Os dados foram estruturados para facilitar a análise."