GET /devices/me/proxy

Retrieve the current HTTP proxy configuration for this device. Per-device proxy overrides global WHATSAPP_CLIENT_PROXY_URL setting.

Responses

  • 200 application/json

    Proxy configuration retrieved

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • proxy_url string
      • active boolean
  • 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
GET /devices/me/proxy
curl \
 --request GET 'http://localhost:7001/devices/me/proxy' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Device proxy configuration",
  "data": {
    "proxy_url": "http://proxy.example.com:8080",
    "active": true
  }
}
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"
}