| URL | POST {{basepath}}/hosting/:hosting_id/login |
|---|---|
| Category | Hosting |
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.
| :hosting_id | {{hosting_id}} | The hosting identifier |
|---|
{
"ip": [
"10.0.0.1"
],
"returnPath": "https:\/\/control.metaregistrar.com\/hosting\/1234\/welcomeback"
}
POST {{basepath}}/hosting/{{hosting_id}}/login
{
"ip": [
"10.0.0.1"
],
"returnPath": "https:\/\/control.metaregistrar.com\/hosting\/1234\/welcomeback"
}
200 OK
{
"responseId": "1_6c1595f35a00a9ca90f0c58fa9b947a4bef36fd6",
"status": "ok",
"message": "The login url is attached",
"loginUrl": "https:\/\/plesktest.yourdomainprovider.net:8443\/thisisafakeplaceholderlogin\/12345"
}