---
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)
- `405` — auth type: none

---

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