---
title: "Export rule groups and rule data from Firefly III"
method: GET
path: "/v1/data/export/rules"
tags: ["data"]
---

# Export rule groups and rule data from Firefly III

`GET /v1/data/export/rules`

## Request

- Base URL: `https://demo.firefly-iii.org/api`
- URL: `https://demo.firefly-iii.org/api/v1/data/export/rules`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://demo.firefly-iii.org/oauth/authorize`
    - Token URL: `https://demo.firefly-iii.org/oauth/token`
  - HTTP bearer

This endpoint allows you to export your rules and rule groups from Firefly III into a file. Currently supports CSV exports only.

## Query parameters

- `type` 'csv'

## Headers

- `X-Trace-Id` string, uuid

## Response `200`

The exported transaction in a file.

## Other responses

- `400`: Bad request
- `401`: Unauthenticated
- `404`: Page not found
- `500`: Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0-beta-2.md) - [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0-beta-2/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0-beta-2/revisions/a5f6f8195556?raw)
