# Proxy generation

## Generate endpoints you want from any country,state and city

<mark style="color:green;">`POST`</mark> `https://api.renlaer.com/V1/OpenApi/OpenApiGenerateCustomEndpoints`

#### Headers

| Name                                           | Type   | Description                       |
| ---------------------------------------------- | ------ | --------------------------------- |
| UserId<mark style="color:red;">\*</mark>       | String | "Authentication" generated userId |
| Token<mark style="color:red;">\*</mark>        | String | "Authentication" generated token  |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json                  |

#### Request Body

| Name                                                | Type    | Description                                                                                                                                                                                                                                      |
| --------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ChannelId<mark style="color:red;">\*</mark>         | Integer |                                                                                                                                                                                                                                                  |
| Location<mark style="color:red;">\*</mark>          | String  | Capitalized country alpha-2 code, continental random, or global random.[view all available countries](https://help.renlaer.com/location-settings/state-and-city)[,states and cities.](https://help.renlaer.com/location-settings/state-and-city) |
| StickySessionTime<mark style="color:red;">\*</mark> | Integer | <p>Session time in minutes, available values:<code>5，10，15，30，60，90.</code></p><p>Fill in <mark style="color:red;"><code>0</code></mark> , which means that a new IP is changed for each request</p>                                             |
| Count<mark style="color:red;">\*</mark>             | Integer | Count of routes that will be generated and returned. Min value is 1, max value depends on param page and specific location.                                                                                                                      |
| Domain<mark style="color:red;">\*</mark>            | String  | <p>Default is <code>Global</code>.</p><p>This means you can use it anywhere in the world, at the fastest speed.</p>                                                                                                                              |
| State                                               | String  | [View allavailable countries,states and cities.](https://help.renlaer.com/location-settings/state-and-city)                                                                                                                                      |
| City                                                | String  | [View allavailable countries,states and cities.](https://help.renlaer.com/location-settings/state-and-city)                                                                                                                                      |

{% tabs %}
{% tab title="200: OK "Code":1000,"Message":"Successful"" %}

```json
{
    "Code": 1000,
    "Message": "Successful",
    "Data": [
        accessdomain:port:customer_US_032_0226_5_ss-SoPzCGvB:password"
    ]
}
```

{% endtab %}
{% endtabs %}
