---
title: "Export CMS pages as csv, xls or xlsx"
method: GET
path: "/cms/pages/export"
tags: ["Admin CMS"]
---

# Export CMS pages as csv, xls or xlsx

`GET /cms/pages/export`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/cms/pages/export`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/cms/pages/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Downloads the CMS Pages datagrid as a csv, xls or xlsx file — the same data the admin CMS → Pages "view" listing shows (ID, Page Title, URL Key, Channel, Locale). Honours the same filters as the listing (`id`, `page_title`, `url_key`, `channel`, `locale`). The response is a binary download, not JSON.

## Query parameters

- `format` 'csv' | 'xls' | 'xlsx'
- `id` integer
- `page_title` string
- `url_key` string
- `channel` integer
- `locale` string

## Response `200`

The CMS pages export file is downloaded as an attachment.

## Other responses

- `401`: Missing or invalid admin token.
- `403`: Admin role lacks permission.
- `404`: Not found
- `422`: Unsupported format (csv, xls and xlsx only).

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
