Get started

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.

Runs on Writ CloudWrit Desktop

Open in Claude Open in ChatGPT

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.

url string required
The sign-in endpoint.
method string
Usually POST.
body json
The request body; credential placeholders resolve at run time, never stored in the recipe.
headers map
Request headers if the endpoint needs them.

Example

One login_post step, as it appears in the steps list of a workflow.

Step
{
  "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.

Next