Modem authorization

Modem authorization

GET https://mobile.proxy-seller.com/api/v1/modemAuths/{modemAuthId}

This query returns the authorization data by its ID.

Example

https://mobile.proxy-seller.com/api/v1/modemAuths/62326bcaf3904578675f9ef7

Path parameters

Headers

Response

{
  "id": "62326bcaf3904578675f9ef7",
  "authType": "LOGIN",
  "login": "jAck",
  "password": "re456pas",
  "ip": ""
}

Create authorization

POST https://mobile.proxy-seller.com/api/v1/modemAuths

This request creates authorization on the modem (adds a user). For modems with the "BASIC" tariff, only one user can be installed

Example

https://mobile.proxy-seller.com/api/v1/modemAuths

Headers

Request body

Example request body

{
    "modemIds": ["63c234098746e15666325bf9f"],
    "authType": "LOGIN",
    "ip": "",
    "login" "samuel",
    "password": "re129883pas",
}

Response

{
  "modemAuth": {
    "id": "1237jj213cb7965413342665",
    "authType": "LOGIN",
    "login": "samuel",
    "password": "re129883pas",
    "ip": ""
  },
  "errors": {}
}

Edit authorization

PUT https://mobile.proxy-seller.com/api/v1/modemAuths/{modemAuthId}

This request edit authorization on the modem .

Example

https://mobile.proxy-seller.com/api/v1/modemAuths/1237jj213cb7965413342665

Headers

Request Body

Example request body

{
    "authType": "LOGIN",
    "ip": "",
    "login" "samuel new name",
    "password": "new129883pas",
}

Response

successful answer has no body, the success state is determined by the status 200

Delete authorization

DELETE https://mobile.proxy-seller.com/api/v1/modemAuths/{modemAuthId}

This request removes authorization from the modem (deletes the user)

Example

https://mobile.proxy-seller.com/api/v1/modemAuths/62326bcaf3904578675f9ef7

Path Parameters

Headers

Response

true

Limits authorization

GET https://mobile.proxy-seller.com/api/v1/modemAuths/{modemAuthId}/proxyLimit

This request returns the limits of the specified authorization (user) on the selected modem

Example

https://mobile.proxy-seller.com/api/v1/modemAuths/62326bcaf3904578675f9ef7/proxyLimit?modemId="63c234098746e15666325bf9f"

Path Parameters

Query parameters

Headers

Response

{
  "id": "652319f04cb7965413432168",
  "ownerId": "62326bcaf3904578675f9ef7",
  "speedLimit": 10000,
  "trafficLimit": 10000
}

Last updated