# RudderStack Transformation

RudderStack Transformation API allows you to manage transformations and libraries for customer data pipelines. Use it to create, update, and delete transformations programmatically.

- **Category:** analytics
- **Auth:** BASIC
- **Tools:** 12
- **Triggers:** 0
- **Slug:** `RUDDERSTACK_TRANSFORMATION`
- **Version:** 00000000_00

## Tools

### Create Library

**Slug:** `RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY`

Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance.

### Create Transformation

**Slug:** `RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION`

Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.

### Delete Transformation

**Slug:** `RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION`

Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.

### Get library by ID

**Slug:** `RUDDERSTACK_TRANSFORMATION_GET_LIBRARY`

Retrieves a single published library by its unique identifier. Use when you need to fetch details of a specific library.

### Get Library Version

**Slug:** `RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSION`

Tool to retrieve a single library version by library ID and version ID. Use when you need to fetch details of a specific library revision in RudderStack transformations.

### Get Transformation

**Slug:** `RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATION`

Tool to retrieve a published transformation by its ID from RudderStack. Use when you need to fetch details about a specific transformation including its code, version, and associated destinations.

### Get Transformation Version

**Slug:** `RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATION_VERSION`

Retrieve a single transformation revision by transformation ID and version ID. Use when you need to get details about a specific version of a RudderStack transformation.

### List All Libraries

**Slug:** `RUDDERSTACK_TRANSFORMATION_LIST_LIBRARIES`

Tool to retrieve all published libraries for a workspace. Use when you need to list available libraries for transformations.

### List Library Versions

**Slug:** `RUDDERSTACK_TRANSFORMATION_LIST_LIBRARY_VERSIONS`

Tool to get all library revisions for a library ID. Use when you need to retrieve all versions of a specific library in RudderStack Transformation.

### List All Transformations

**Slug:** `RUDDERSTACK_TRANSFORMATION_LIST_TRANSFORMATIONS`

Tool to retrieve all published transformations for a workspace. Use when you need to list available transformations or find a specific transformation by name.

### List Transformation Versions

**Slug:** `RUDDERSTACK_TRANSFORMATION_LIST_TRANSFORMATION_VERSIONS`

Tool to list all transformation versions (revisions) for a given transformation ID. Use when you need to retrieve the version history of a specific transformation.

### Update Transformation

**Slug:** `RUDDERSTACK_TRANSFORMATION_UPDATE_TRANSFORMATION`

Tool to update and optionally publish a RudderStack transformation. Use when you need to modify a transformation's name, description, or code. Updating creates a new revision and sets it as published if the publish flag is true.
