Login to wordpress using wp-toolkit

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

Description

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.

Url variables
:hosting_id{{hosting_id}}

Example responses

Log in to wordpress
Request Method & URL
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
Url variables
:hosting_id{{hosting_id}}
Response Code:
200 OK
Response Body:
{
    "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"
}
Cannot login to wordpress-not-set up
Request Method & URL
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
Url variables
:hosting_id{{hosting_id}}
Response Code:
409 Conflict
Response Body:
{
    "responseId": "1_9eda1a1da8803b9b2cb1d40619c089e78d4a5841",
    "status": "error",
    "errorCode": "invalid_hosting",
    "errorMessage": "this hosting is not set up for wordpress login"
}
hosting does not exist
Request Method & URL
GET {{basepath}}/hosting/:hosting_id/wptoolkit/login
Url variables
:hosting_id{{hosting_id}}
Response Code:
404 Not Found
Response Body:
{
    "responseId": "1_4686d8fab1add894a2f11b91e6ce3c1bf141ee93",
    "status": "error",
    "errorCode": "does_not_exist",
    "errorMessage": "This hosting does not exist"
}