Management
DocsManagement

Paket-Management

Rotieren Sie das Proxy-Passwort, ändern Sie die maximalen gleichzeitigen Verbindungen und schalten Sie HTTP/SOCKS5 pro Paket um.

POST /packages/{id}/rotate-password

Erzeugt ein neues Proxy-Passwort und invalidiert das vorherige sofort. Das neue Passwort wird in der Antwort zurückgegeben — speichern Sie es: später nur über GET /packages/{id} abrufbar.

POST/api/v1/packages/{id}/rotate-password
response.json
{
  "data": {
    "password":   "8e2c9b14a7f0d3e5",
    "rotated_at": "2026-05-29T11:42:00+00:00"
  },
  "meta": { "version": "v1" }
}

Rotation trennt aktive Verbindungen

Alle aktiven Clients mit dem alten Passwort werden sofort getrennt. Planen Sie die Rotation in Zeiten geringer Last oder aktualisieren Sie alle Clients vorher.

PATCH /packages/{id}/threads

Aktualisiert die maximale Anzahl gleichzeitiger TCP-Verbindungen für dieses Paket. Bereich: 1–2000. Standard bei Provisionierung: 1000.

PATCH/api/v1/packages/{id}/threads
request.json
{ "threads": 500 }

PATCH /packages/{id}/protocols

Aktiviert/Deaktiviert HTTP/SOCKS5 für das Paket. Mindestens ein Protokoll muss aktiv bleiben. SOCKS5 aus = Port 824 antwortet nicht mehr; HTTP aus = Port 823 antwortet nicht mehr.

PATCH/api/v1/packages/{id}/protocols
request.json
{ "protocols": ["http"] }            // HTTP only
{ "protocols": ["http", "socks5"] }  // both

Code-Beispiele

management.sh
# Rotate password
curl -X POST https://raxyproxy.com/api/v1/packages/12/rotate-password \
     -H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# Cap threads to 500
curl -X PATCH https://raxyproxy.com/api/v1/packages/12/threads \
     -H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
     -H "Content-Type: application/json" \
     -d '{"threads":500}'

# Disable SOCKS5 — port 824 stops accepting this package
curl -X PATCH https://raxyproxy.com/api/v1/packages/12/protocols \
     -H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
     -H "Content-Type: application/json" \
     -d '{"protocols":["http"]}'