---
type: api
title: Authorize transforms
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-reauthorize-transforms
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-reauthorize-transforms
products:
  - Kibana
---

# Authorize transforms

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize`
- `POST` `/s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize`

#### Path parameters

- `pkgName` (string) — required
- `pkgVersion` (string) — required

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Query string parameters

- `prerelease` (boolean · default: false) — optional
  Whether to include prerelease packages in categories count (e.g. beta, rc, preview)

## Header parameters

- `kbn-xsrf` (string) — required
  Kibana's anti Cross-Site Request Forgery token. Can be any string value.

## Request body

`application/json`

- `transforms` (object[]) — optional
  - `transformId` (string) — optional

## Responses

#### `200`

OK

`application/json`

- `items` (object[])
  - `error` (string)
  - `success` (boolean)
  - `transformId` (string)
#### `400`

Generic Error

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
POST kbn:/api/fleet/epm/packages/PKG_NAME/PKG_VERSION/transforms/authorize
{}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/fleet/epm/packages/${PKG_NAME}/${PKG_VERSION}/transforms/authorize" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

