# API

## About Affiliate Program

Our company is starting an [affiliate program](https://affiliates.changemyip.com) through which you can sell our services (Proxy, Shared Proxy, Socks,  Shared Socks, Trojan Proxies, Shadowsocks Proxies, DNS Proxies and Wireguard VPN) and make a profit per service.&#x20;

There are a few advantages to this opportunity:&#x20;

* Great Selling [Prices](/affiliates/prices.md)
* **We deal with servers** and all technical aspects of this business
* **Your customers your money. T**he funds from your customer orders will be processed by you.  and you will receive the full income from those orders directly. To facilitate this process, we kindly ask you to top up your affiliate account. This will allow us to deduct our portion for the services that were delivered.
* **No Setup Fees.**
* **Your implementation.** You can integrate our API through your already existent website, Discord bots, telegram, or any other app. &#x20;
* You are not limited to just one site, you can create as many as you please.
* Other benefits we offer: [Discounts](/affiliates/prices/discounts.md), [Coupons](/affiliates/prices/coupons.md), special prices for [Tags](/affiliates/prices/tags.md).
* Constant Support&#x20;

### To know

* In order to enable API, please contact our support after you finished [Set Up](/affiliates/affiliates-set-up.md).
* An website which already has users or orders can not be converted to API or reversed.
* Using API, you need to handle your payments.
* Using API, orders will be automatically placed from users account balance, even if account balance of users are 0.
* We are subtracting our cut from your affiliate balance amount.
* When creating orders, fields like: **Gateway, Use Balance, Company ID, Auto Renewal** can be omitted, this are not supported for API enabled websites or have default values

### What you can do

* In the affiliates dashboard you can generate an **API Key** which is available for your website
* With the affiliate site API Key you can:
  * Generate New users (username and email will be auto generated)
  * Regenerate API Keys of users
  * List your users with additional data
* With the user API Key you can:
  * &#x20;Get User data
  * Get Available IPs to be purchased, sort and filter them by service, type and location
  * Get Users, IPs, and modify them
  * Rotating Proxies, get and modify configurations, get stats and locations
  * Proxy Credentials, get and modify user proxy password and IP whitelist
  * Manipulate the shopping cart, and calculate it
  * Get details about orders
  * Create orders for static and rotating services, also extend and renew orders
  * User balance get and list transactions

More details regarding the url endpoints, accepted data, authentication you can find inside your account.

{% content-ref url="/pages/oZT3tLSCtsrKyYkD6mBR" %}
[Generate API Key](/affiliates/api/generate-api-key.md)
{% endcontent-ref %}

\
&#x20;


---

# 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://drsoft.gitbook.io/affiliates/api.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.
