Reference Workflows 06 / 06
Login (request) step
Sign in as a request instead of a DOM form, on your own account. A step a recorded Writ workflow can run, with its fields and an example.
On this page
The login_post step replays a sign-in as an HTTP request instead of filling a form — mechanically an api_call whose body carries your credentials. Because the request runs inside the page, the session cookie it sets is reused by every step that follows.
In a workflow, this step is a JSON object with "type": "login_post". Steps run in order, and each step can read the outputs of the steps before it.
Fields
Set these inside the step’s config object.
-
urlstring required - The sign-in endpoint.
-
methodstring - Usually POST.
-
bodyjson - The request body; credential placeholders resolve at run time, never stored in the recipe.
-
headersmap - Request headers if the endpoint needs them.
Example
One login_post step, as it appears in the steps list of a workflow.
{
"type": "login_post",
"config": {
"method": "POST",
"url": "https://example.com/api/login",
"body": { "email": "{{email}}", "password": "{{vault:password}}" }
}
} How it behaves
- A distinct type from api_call so a sign-in is never treated as a data deliverable.
- Credentials resolve from the vault at run time; nothing sensitive lives in the workflow.
- Only sign in to accounts you own or are authorized to use.
Where it runs
The step runs wherever its workflow runs. On Writ Desktop, runs are free and can reach systems that only your own network can reach.
On Writ Cloud, each call costs credits: 20 when the run needs a browser, 2 when it does not. A call that fails because of the site or Writ costs nothing.
Related steps
- API call
api_callMake an HTTP request from inside the page session. - Two-factor (2FA)
twofaComplete a two-factor challenge on your own account. - Fill
fillSet a field's value in one operation.
Next
- 01 All workflow steps The full step list, grouped by family.
- 02 Record a workflow Show Writ the clicks once in a real browser, then replay them with new inputs on demand or on a schedule.
- 03 Call your API Run an API over REST from any language: endpoints, keys, waiting for results, caching and responses.
- 04 Credits and plans What each call, page and check costs in credits, what plans include, and what happens at zero.