---
title: "corestack_redirects_export"
url: https://docs.corefinity.com/mcp/tools/corestack_redirects_export
type: tool
last_updated: 2026-11-13
feature: redirects
related:
  - https://docs.corefinity.com/api/reference/site-settings/export-site-redirects.md
  - https://docs.corefinity.com/guides/sites/site-settings/redirects.md
---
# corestack_redirects_export

**Export redirects.** A row's saved redirects as an nginx, Apache or CSV file's text. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

A row's saved redirects as an nginx, Apache or CSV file's text.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `format` (one of `nginx`, `apache`, `csv`): nginx (the default), apache or csv.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "description": "nginx (the default), apache or csv.",
      "enum": [
        "nginx",
        "apache",
        "csv"
      ],
      "type": "string"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_redirects_export",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_redirects_export with site_id 4211. (Export redirects.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/redirects/export](https://docs.corefinity.com/api/reference/site-settings/export-site-redirects.md)
- Guide: [Redirects](https://docs.corefinity.com/guides/sites/site-settings/redirects.md)
