POST /devices/me/proxy

Configure HTTP proxy for this device. Overrides global WHATSAPP_CLIENT_PROXY_URL. Use empty string to disable per-device proxy. Device will reconnect automatically.

application/json

Body Required

  • proxy_url string Required

    HTTP/HTTPS proxy URL. Empty string to disable.

Responses

  • 200 application/json

    Proxy configured successfully

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
POST /devices/me/proxy
curl \
 --request POST 'http://localhost:7001/devices/me/proxy' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"proxy_url":"http://proxy.example.com:8080"}'
Request examples
{
  "proxy_url": "http://proxy.example.com:8080"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Device proxy configured successfully"
}
Response examples (400)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}