Assign plan with details
curl --request POST \
--url https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details \
--header 'Content-Type: application/json' \
--data '
{
"secUsername": "<string>",
"proxyType": 123,
"traffic": 123,
"apiKey": "<string>"
}
'import requests
url = "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details"
payload = {
"secUsername": "<string>",
"proxyType": 123,
"traffic": 123,
"apiKey": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({secUsername: '<string>', proxyType: 123, traffic: 123, apiKey: '<string>'})
};
fetch('https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'secUsername' => '<string>',
'proxyType' => 123,
'traffic' => 123,
'apiKey' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details"
payload := strings.NewReader("{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details")
.header("Content-Type", "application/json")
.body("{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": "798v509632",
"password": "qli98bex",
"planId": "20250101180018087",
"proxyType": 1,
"traffic": 1,
"effectTime": "2025-01-01 18:00:18",
"expireTime": "2025-01-01 18:00:18",
"deductedAmount": 5,
"remainingBalance": 870.69
}Create Plan
Assign plan with details
Assign a rotating proxies plan to the specified sec-user and return details.
POST
/
api
/
v2
/
secUser
/
addPlan
/
details
Assign plan with details
curl --request POST \
--url https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details \
--header 'Content-Type: application/json' \
--data '
{
"secUsername": "<string>",
"proxyType": 123,
"traffic": 123,
"apiKey": "<string>"
}
'import requests
url = "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details"
payload = {
"secUsername": "<string>",
"proxyType": 123,
"traffic": 123,
"apiKey": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({secUsername: '<string>', proxyType: 123, traffic: 123, apiKey: '<string>'})
};
fetch('https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'secUsername' => '<string>',
'proxyType' => 123,
'traffic' => 123,
'apiKey' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details"
payload := strings.NewReader("{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details")
.header("Content-Type", "application/json")
.body("{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.okeyproxy.com/ipglobal-api/api/v2/secUser/addPlan/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"secUsername\": \"<string>\",\n \"proxyType\": 123,\n \"traffic\": 123,\n \"apiKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": "798v509632",
"password": "qli98bex",
"planId": "20250101180018087",
"proxyType": 1,
"traffic": 1,
"effectTime": "2025-01-01 18:00:18",
"expireTime": "2025-01-01 18:00:18",
"deductedAmount": 5,
"remainingBalance": 870.69
}Body
application/json
Response
200 - application/json
Account for the corresponding proxy type
Password for the corresponding proxy type
Plan ID
Rotating proxies type. 1 for Starter, 2 for Advanced, 3 for Premium.
Plan traffic (in GB)
Effective time. Format: yyyy-MM-dd HH:mm:ss (UTC+8)
Expiration time. Format: yyyy-MM-dd HH:mm:ss (UTC+8)
Deducted amount from Agent wallet
Remaining balance in Agent wallet
⌘I