# create_wordpress_admin_link

> Mint a one-time wp-admin login URL for a WordPress install, to hand to the human so they can manage the site in wp-admin.

- Tier: W
- Required scope: read:hosting + sso:hosting
- Annotations: none
- Docs: https://api.inleed.com/tools/create-wordpress-admin-link

## Description

Mint a one-time wp-admin login URL for a WordPress install, to hand to the human so they can manage the site in wp-admin. Returns the URL under `loginUrl`: it is single-use and expires quickly — return it to the user's browser immediately; do not store, log or reuse it. **Mint it at most once for an install: generating a new link invalidates the previous one, so a second call in the same reply leaves the customer clicking a dead link.** This logs into wp-admin, not the hosting panel (use `create_panel_login_link` for DirectAdmin). Requires both `read:hosting` and `sso:hosting`.

## Input schema

- `input` — string (required). A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
- `install_id` — string. The install to log into, from list_wordpress_installs (installs[].id). Optional when url or path names it instead — prefer those (the address the customer used cannot be mis-copied); with none of the three the install at the domain root is meant.
- `path` — string. Instead of install_id: the folder under the domain where WordPress lives (e.g. blog), or `` for the domain root.
- `url` — string. Instead of install_id: the site address as listed, e.g. https://example.com/blog.

## Example call

```json
{
  "name": "create_wordpress_admin_link",
  "arguments": {
    "input": "example.se"
  }
}
```

