---
title: "Authenticate user."
method: POST
path: "/auth/login"
tags: ["authentication"]
---

# Authenticate user.

`POST /auth/login`

Authenticate to server using username and password.

## Request body

- object
  - `username` string, required — User to authenticate
  - `password` string, required — Password for supplied username.

## Response `200`

Successful Authentication response.

- object — Login success result
  - `token` string, required — Authentication token to be supplied with future requests.
  - `timeToLive` number — Token validity time (seconds).

## Other responses

- `default` — Failed operation

---

[API](https://skmtc.dev/signalk/apis/signal-k-security-api.md) · [All operations](https://skmtc.dev/signalk/apis/signal-k-security-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/signalk/signal-k-security-api/revisions/9c4fd7143750/schema)
