Login hosting

Request Information
URL POST {{basepath}}/hosting/:hosting_id/login
CategoryHosting

Description

Allows you to generate a login url.

NOTE: Please only generate these when you are actively redirecting a use to their hosting product. Requesting these to present to the user as a direct link will result in a lot api calls which is a waste of resources.

Request body should contain a HostingLoginRequest object.

Returns a HostingLoginResponse object.

Url variables
:hosting_id{{hosting_id}}The hosting identifier
JSON
{
    "ip": [
        "10.0.0.1"
    ],
    "returnPath": "https:\/\/control.metaregistrar.com\/hosting\/1234\/welcomeback"
}

Example responses

Login to the hosting
Request Method & URL
POST {{basepath}}/hosting/{{hosting_id}}/login
Request Body:
{
    "ip": [
        "10.0.0.1"
    ],
    "returnPath": "https:\/\/control.metaregistrar.com\/hosting\/1234\/welcomeback"
}
Response Code:
200 OK
Response Body:
{
    "responseId": "1_6c1595f35a00a9ca90f0c58fa9b947a4bef36fd6",
    "status": "ok",
    "message": "The login url is attached",
    "loginUrl": "https:\/\/plesktest.yourdomainprovider.net:8443\/thisisafakeplaceholderlogin\/12345"
}