Create a website login link
Creates a single-use link that signs you in to the website’s WordPress dashboard as its default WordPress user, without a password. Open meta.login_url in a browser; it stays valid for 10 minutes and the answer also carries meta.expires_at. A successful login is recorded in the organization’s activity.
Body
redirect_to(string, optional, at most 255 characters): the page the login lands on instead of the WordPress dashboard, relative to wp-admin, for examplepost.php?post=42&action=editfor a post’s editor, or../followed by a path of the website, for example../?p=42&preview=truefor a draft preview. It cannot point to another website: a scheme, a leading/, a backslash or a path that leaves the website is refused.
Errors
- 400: the website is not connected, or has no WordPress user synchronized yet.
- 404: the member cannot sign in to this website.
- 422:
redirect_tois not a path of the website. - 503: Modular DS cannot issue the link right now because the store that keeps the single-use link is unavailable. Retry in a moment.
Authentication
AuthorizationBearer
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
site
Request
This endpoint expects an object.
redirect_to
Response
200 - Login link issued
jsonapi
meta
