About this endpoint
What it does
Minifies CSS or JavaScript code by removing comments and unnecessary whitespace. The request must include the code to minify and a type indicating whether the input is css or js.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| code | String | Yes | The CSS or JavaScript source code to minify. |
| type | ENUM | Yes | The input code type. Allowed values: css, js. |
Response
A successful call returns a JSON object with these fields:
| Parameter | Type | Description |
|---|---|---|
| tool | String | Name of the tool that produced the response. |
| type | String | The code type that was minified (echoes the request). |
| result | String | The minified code. |



