---
title: "Retrieve an Analytical General Ledger export"
method: GET
path: "/api/external/v2/exports/analytical_general_ledgers/{id}"
tags: ["Exports"]
---

# Retrieve an Analytical General Ledger export

`GET /api/external/v2/exports/analytical_general_ledgers/{id}`

The endpoint returns a specific Analytical General Ledger export. The export file is an xlsx file, using the in-line analytical mode.

> ℹ️
> This endpoint requires the following scope: `exports:agl`

## Path parameters

- `id` integer, required

## Response `200`

Returns the export

- object
  - `id` integer, required — ID of the export
  - `file_url` string, nullable, required — URL to download the export file. The URL will expire after 30 minutes.
  - `status` 'pending' | 'ready' | 'error', required — The state of the export
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Bad request
- `401` — Access token is missing or invalid
- `403` — Access to this resource forbidden
- `404` — The resource was not found

---

[API](https://skmtc.net/pennylane/apis/company-v2.md) · [All operations](https://skmtc.net/pennylane/apis/company-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pennylane/company-v2/revisions/a5b7236473c6/schema)
