> For the complete documentation index, see [llms.txt](https://ethereum-privacy-machine.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ethereum-privacy-machine.gitbook.io/product-docs/integrating-epm/epm-api-documentation.md).

# EPM API Documentation

Developers looking to integrate EPM into their applications will find comprehensive API documentation on this page. It provides detailed information on EPM's APIs, endpoints, data structures, and authentication methods, enabling smooth integration into custom projects.

```python
import requests

# Set up the API endpoint URL
api_url = "https://api.epm.io/mixer/transactions"

# Define the input parameters for the transaction mixer
input_address = "0x123456789abcdef"  # The input address of the transaction
output_address = "0x987654321fedcba"  # The output address for the mixed transaction
amount = 0.5  # The amount to be mixed (in ETH or ERC20 tokens)

# Create a JSON payload with the input parameters
payload = {
    "input_address": input_address,
    "output_address": output_address,
    "amount": amount
}

# Make a POST request to the API endpoint
response = requests.post(api_url, json=payload)

# Check the response status code
if response.status_code == 200:
    # Transaction mixer request successful
    mixer_transaction = response.json()
    mixer_transaction_id = mixer_transaction["transaction_id"]
    print("Transaction successfully mixed. Transaction ID:", mixer_transaction_id)
else:
    # Transaction mixer request failed
    print("Error:", response.text)

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ethereum-privacy-machine.gitbook.io/product-docs/integrating-epm/epm-api-documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
