---
title: "Authenticate towards the node"
method: POST
path: "/auth"
tags: ["auth"]
---

# Authenticate towards the node

`POST /auth`

## Request body

- LoginRequest
  - `password` string, string, required
  - `username` string, string, required

## Response `200`

Login was successful

- LoginResponse
  - `error` string, string, required
  - `jwt` string, string, required

## Other responses

- `401` — Unauthorized (Wrong permissions, missing token)

## Changes

- **2023-02-13** `1041f915f260` — 1 info
  - removed the non-success response with the status `405`

[Change history](https://skmtc.dev/iotaledger/apis/wasp-api/changes/auth/post.md)

---

[API](https://skmtc.dev/iotaledger/apis/wasp-api.md) · [All operations](https://skmtc.dev/iotaledger/apis/wasp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iotaledger/wasp-api/revisions/5ffe1a3d7623/schema)
