About this endpoint
What it does
Encodes text so it can be safely used in a URL, or decodes an encoded URL back to readable text, chosen with action. By default (component: true) reserved characters such as / ? & = are encoded too, which is what you need for a single query parameter value. Set component to false to encode a full URL while keeping its structure.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The input string to encode or decode. |
| action | ENUM | Yes | Operation to perform: encode or decode. |
| component | Boolean | No | When true (default), also encodes / ? & = and other reserved characters. Set false to encode a full URL while keeping its structure. |
Response
A successful call returns a JSON object with these fields:
| Parameter | Type | Description |
|---|---|---|
| tool | String | Name of the tool that produced the response. |
| action | String | The action that was performed (echoes the request). |
| result | String | The URL-encoded or decoded text. |



