> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yoshi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List transactions

> Sync transactions for the authenticated user with cursor-based pagination and optional date backfill filters.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/yoshi/openapi.documented.yml get /transactions
openapi: 3.1.0
info:
  title: Yoshi API
  version: 1.0.0
  description: Consumer API for accessing your Yoshi financial data programmatically.
servers:
  - url: https://api.yoshi.ai/v1
    description: Production
  - url: https://staging-api.yoshi.ai/v1
    description: Staging
security:
  - bearerAuth: []
paths:
  /transactions:
    get:
      tags:
        - Transactions
      summary: List transactions
      description: >-
        Sync transactions for the authenticated user with cursor-based
        pagination and optional date backfill filters.
      operationId: listTransactions
      parameters:
        - schema:
            type: string
            description: Opaque cursor from a previous response
          required: false
          description: Opaque cursor from a previous response
          name: cursor
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            description: Items per page (1-100, default 50)
          required: false
          description: Items per page (1-100, default 50)
          name: limit
          in: query
        - schema:
            type: string
            format: uuid
            description: Filter by account ID
          required: false
          description: Filter by account ID
          name: account_id
          in: query
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            description: Inclusive posted-date lower bound
          required: false
          description: Inclusive posted-date lower bound
          name: start_date
          in: query
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            description: Inclusive posted-date upper bound
          required: false
          description: Inclusive posted-date upper bound
          name: end_date
          in: query
      responses:
        '200':
          description: Transactions retrieved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        updated_at:
                          type: string
                        account_id:
                          type: string
                        account_name:
                          type: string
                        amount:
                          type: number
                        amount_absolute:
                          type: number
                        cash_flow_direction:
                          type: string
                        is_internal_transfer:
                          type: boolean
                        pending:
                          type: boolean
                        date_posted:
                          type: string
                        date_authorized:
                          type:
                            - string
                            - 'null'
                        category_label:
                          type: string
                        category_tier1:
                          type: string
                        category_tier2:
                          type:
                            - string
                            - 'null'
                        counterparty_name:
                          type: string
                        counterparty_logo_url:
                          type:
                            - string
                            - 'null'
                        original_description:
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - updated_at
                        - account_id
                        - account_name
                        - amount
                        - amount_absolute
                        - cash_flow_direction
                        - is_internal_transfer
                        - pending
                        - date_posted
                        - date_authorized
                        - category_label
                        - category_tier1
                        - category_tier2
                        - counterparty_name
                        - counterparty_logo_url
                        - original_description
                  pagination:
                    type: object
                    properties:
                      count:
                        type: integer
                        description: >-
                          Number of items in the current page (equals
                          data.length).
                      has_more:
                        type: boolean
                      total_count:
                        type: integer
                        description: >-
                          Total items across all pages. Present only when the
                          source can compute it.
                      next_cursor:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Opaque cursor for the next page; pass back as
                          `cursor`. null when there are no more pages.
                      limit:
                        type: integer
                        description: >-
                          Page size requested for this page. Present only when
                          the endpoint echoes its limit.
                    required:
                      - count
                      - has_more
                      - next_cursor
                  meta:
                    type: object
                    properties:
                      request_id:
                        type: string
                        example: req_a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      timestamp:
                        type: string
                        format: date-time
                        example: '2026-04-10T12:00:00.000Z'
                    required:
                      - request_id
                      - timestamp
                required:
                  - data
                  - pagination
                  - meta
        '400':
          description: Invalid cursor.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Yoshi from '@yoshi-ai/sdk';


            const client = new Yoshi({
              apiKey: process.env['YOSHI_API_KEY'], // This is the default and can be omitted
            });


            // Automatically fetches more pages as needed.

            for await (const transactionListResponse of
            client.transactions.list()) {
              console.log(transactionListResponse.id);
            }
        - lang: Python
          source: |-
            import os
            from yoshi_sdk import Yoshi

            client = Yoshi(
                api_key=os.environ.get("YOSHI_API_KEY"),  # This is the default and can be omitted
            )
            page = client.transactions.list()
            page = page.data[0]
            print(page.id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/yoshi-ai-dev/yoshi-go\"\n\t\"github.com/yoshi-ai-dev/yoshi-go/option\"\n)\n\nfunc main() {\n\tclient := yoshi.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tpage, err := client.Transactions.List(context.TODO(), yoshi.TransactionListParams{})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", page)\n}\n"
        - lang: CLI
          source: |-
            yoshi transactions list \
              --api-key 'My API Key'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Yoshi API key from Settings → API Keys, or a Yoshi OAuth access token
        issued by Sign in with Yoshi.
      x-default: yoshi_test_...

````