Skip to main content
POST
/
orders
/
{order_id}
/
protocol
Change proxy protocol
curl --request POST \
  --url https://api.proxyjam.com/public/v1/orders/{order_id}/protocol \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "new_type": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.proxyjam.com/llms.txt

Use this file to discover all available pages before exploring further.

Changes the protocol of a provisioned proxy by calling the upstream provider. After the switch, the local record is updated to reflect the new protocol, port, and credentials returned by the provider.

Path parameters

order_id
string
required
UUID of the order.

Body

new_type
string
required
Target protocol. Must be one of HTTP or SOCKS5.

Response

Updated proxy object after the protocol change. Same shape as the managed_proxy object in Get order.
This endpoint makes a live call to the upstream provider. The proxy may briefly be unavailable during the protocol switch.

Example

curl -X POST "https://api.proxyjam.com/public/v1/orders/997b4450-e7ae-4ad9-8a25-996e582049c9/protocol" \
  -H "X-API-Key: pj_AbCdEf..." \
  -H "Content-Type: application/json" \
  -d '{"new_type": "SOCKS5"}'