URL | GET {{basepath}}/hosting/:hosting_id/wptoolkit/login |
---|---|
Category | Hosting |
Allows you to log in to the hosting's wordpress install if it is set up using wp-toolkit. NOTE: Please only generate these when you are actively redirecting a user to their wordpress. Requesting these to present to the user as a direct link will result in a lot api calls which is a waste of resources and security risks.
Returns a HostinLoginResponse object.
:hosting_id | {{hosting_id}} |
---|
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
:hosting_id | {{hosting_id}} |
---|
200 OK
{
"responseId": "1_ed284c07a2b0160ee7fe2f5a5d36b65294912d41",
"status": "ok",
"message": "The wordpress login url is attached",
"loginUrl": "https:\/\/example-2024-5-16-14-19-30.com\/wp-login.php?token=f8fdb58fe90584a94d5b0b57b6f18384a6de1033940d8677e431d0a7ce8121b2"
}
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
:hosting_id | {{hosting_id}} |
---|
409 Conflict
{
"responseId": "1_9eda1a1da8803b9b2cb1d40619c089e78d4a5841",
"status": "error",
"errorCode": "invalid_hosting",
"errorMessage": "this hosting is not set up for wordpress login"
}
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
:hosting_id | {{hosting_id}} |
---|
404 Not Found
{
"responseId": "1_4686d8fab1add894a2f11b91e6ce3c1bf141ee93",
"status": "error",
"errorCode": "does_not_exist",
"errorMessage": "This hosting does not exist"
}