# Get export capabilities

> Whether the workspace stores plaintext logs (an export then always includes the step logs) and the export limits.

Source: https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/export-capabilities`

- Operation: `get_workflow_run_export_capabilities`
- Resource: Workflow runs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `plaintext_logs_enabled` | boolean | Yes |  |
| `max_rows` | integer | Yes |  |
| `max_executions_with_logs` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/export-capabilities?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "plaintext_logs_enabled": false,
  "max_rows": 0,
  "max_executions_with_logs": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)