# API Transformation

In this scenario the <code class="expression">space.vars.X\_Agent\_Name\_Single</code> is installed alongside the Composable Agentic Platform Application Server and they work as an integrated whole, turning the <code class="expression">space.vars.X\_Agent\_Name\_Single</code> into a high-performance HTTP proxy with the ability to provide SSL termination and on the fly transformation of requests and responses between the existing applications and the existing APIs.

<figure><img src="/files/Xe9L85Wg2m3Z1pnDq7wl" alt=""><figcaption><p>Graph</p></figcaption></figure>

Use cases for this approach include:

* Vendor abstraction, which provides the ability to create generic APIs for things such as *text messages*, *geo-location*, *two-factor authentication* and use those APIs in the existing applications instead of vendor specific APIs
* API Sunsetting, where the <code class="expression">space.vars.X\_Agent\_Name\_Single</code> is capable of transforming the structure of an API call between different versions, such as to facilitate the removal of older version code from the API server source code
* API Accounting, enabling chargeback of API calls that have a monetary cost to the respective users of that API


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomorrowx.com/cap/product-reference/architectural-scenarios/api-transformation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
