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

# List what changed

> What changed in the space since a cursor, oldest first: keep a faithful copy by polling, deletions included. Without `cursor` the feed starts from the beginning (every object, then the changes); keep `next_cursor` from every page and send it next time, and while `has_more` is true read again right away. Each item is an object (`transaction`, `account`, `category`, `budget`, `recurring_transaction`) with `op` `upsert` and `data`, the object as its list endpoint returns it, or `delete`. Changes come in commit order, so a slow write never lands behind a cursor already read. Any read scope opens this route, and each type needs the scope that reads it. 410 `CHANGES_RESYNC_REQUIRED` means the cursor can't continue (access changed, 180 days passed, other `types`): read again without a cursor and replace the copy.



## OpenAPI

````yaml /public-openapi.json get /v1/changes
openapi: 3.1.0
info:
  contact:
    email: support@degroshi.com
    name: Degroshi Support
  description: >-
    The routes a personal access token may call, each with the scope it needs
    (x-required-scope; `any:read` takes any read scope, `any:token` any token).
    Send the token as X-API-Key and the space as X-Space-ID (optional for a
    token bound to one space). Send X-Display-Currency (ISO 4217) to get
    converted amounts and totals in that currency. Each token has its own rate
    limit: past it a request answers 429 (BIZ_080) with Retry-After, and every
    answer carries X-RateLimit-Limit, -Remaining and -Reset. v1 changes only by
    addition. `x-error-codes` lists the error codes these routes' families can
    answer, each with its HTTP statuses. `webhooks` lists the events a webhook
    endpoint receives, each signed in Degroshi-Signature.
  title: Degroshi public API
  version: '1.0'
servers:
  - description: Production server
    url: https://api.degroshi.com
security:
  - ApiKeyAuth: []
paths:
  /v1/changes:
    get:
      tags:
        - changes
      summary: List what changed
      description: >-
        What changed in the space since a cursor, oldest first: keep a faithful
        copy by polling, deletions included. Without `cursor` the feed starts
        from the beginning (every object, then the changes); keep `next_cursor`
        from every page and send it next time, and while `has_more` is true read
        again right away. Each item is an object (`transaction`, `account`,
        `category`, `budget`, `recurring_transaction`) with `op` `upsert` and
        `data`, the object as its list endpoint returns it, or `delete`. Changes
        come in commit order, so a slow write never lands behind a cursor
        already read. Any read scope opens this route, and each type needs the
        scope that reads it. 410 `CHANGES_RESYNC_REQUIRED` means the cursor
        can't continue (access changed, 180 days passed, other `types`): read
        again without a cursor and replace the copy.
      operationId: listChanges
      parameters:
        - description: The space to act in. A token bound to one space may leave it out.
          in: header
          name: X-Space-ID
          required: false
          schema:
            type: string
        - description: next_cursor of the previous page; omit to start from the beginning
          in: query
          name: cursor
          schema:
            type: string
        - description: >-
            Object types (any of them): transaction, account, category, budget,
            recurring_transaction; all the caller may read by default. Repeat
            the parameter or send comma separated names
          explode: true
          in: query
          name: types
          schema:
            items:
              type: string
            type: array
        - description: Changes per page, 1 to 500 (default 100)
          example: 100
          in: query
          name: limit
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangesResponseEnvelope'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Gone
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Too Many Requests: this token's or this route's rate limit is used
            up (BIZ_080). Retry after Retry-After seconds.
          headers:
            Retry-After:
              description: Seconds until the limit resets.
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Requests allowed in the window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left in the window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: When the window resets, in Unix seconds.
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ChangesResponseEnvelope:
      properties:
        data:
          $ref: '#/components/schemas/ChangesResponse'
        success:
          description: Always true
          type: boolean
      required:
        - success
        - data
      type: object
      x-unwrapped:
        $ref: '#/components/schemas/ChangesResponse'
    ErrorResponse:
      description: Error envelope written for every 4xx/5xx response.
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
        success:
          description: Always false
          type: boolean
      required:
        - success
        - error
      type: object
    ChangesResponse:
      properties:
        has_more:
          description: >-
            More changes are waiting now; read again with next_cursor right
            away.
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/Change'
          type: array
        next_cursor:
          description: >-
            `next_cursor` continues after this page: keep it and send it next
            time, even when items is empty.
          examples:
            - eyJjIjoiZXlKMklqb3hMQ0p6SWpvaU...
          type: string
      required:
        - items
        - next_cursor
        - has_more
      type: object
    ErrorBody:
      properties:
        code:
          description: Machine-readable error code (see x-error-codes)
          examples:
            - AUTH_001
          type: string
        correlation_id:
          description: Request correlation id; include it in bug reports
          type:
            - string
            - 'null'
        details:
          additionalProperties: true
          description: Additional error context
          type:
            - object
            - 'null'
        message:
          description: Human-readable error message describing the specific error
          examples:
            - Error description varies by error code
          type: string
      required:
        - code
        - message
      type: object
    Change:
      properties:
        data:
          description: >-
            The object as its list endpoint returns it now (GET
            /v1/transactions, /v1/accounts, /v1/categories without children,
            /v1/budgets, /v1/recurring-transactions); absent for a delete.
          type:
            - object
            - 'null'
        id:
          description: ID is the object's id.
          examples:
            - 7c9e6679-7425-40de-944b-e07fc1f90ae7
          type: string
        op:
          description: >-
            Op: upsert (the object is new or changed: data is it now) or delete
            (gone, or no longer visible to the caller).
          enum:
            - upsert
            - delete
          examples:
            - upsert
          type: string
        type:
          allOf:
            - $ref: '#/components/schemas/ObjectType'
          enum:
            - transaction
            - account
            - category
            - budget
            - recurring_transaction
          examples:
            - transaction
      required:
        - type
        - id
        - op
      type: object
    ObjectType:
      enum:
        - transaction
        - account
        - category
        - budget
        - recurring_transaction
      type: string
      x-enum-comments:
        TypeAccount: GET /v1/accounts
        TypeBudget: GET /v1/budgets
        TypeCategory: GET /v1/categories, without children
        TypeRecurringTransaction: GET /v1/recurring-transactions
        TypeTransaction: GET /v1/transactions
      x-enum-varnames:
        - TypeTransaction
        - TypeAccount
        - TypeCategory
        - TypeBudget
        - TypeRecurringTransaction
  securitySchemes:
    ApiKeyAuth:
      description: >-
        A personal access token. In the reference console at docs.degroshi.com,
        paste a sandbox key (`dg_test_…`): the console takes sandbox keys only
        and answers 403 AUTH_081 to any other.
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.