---
title: "Authenticate"
method: POST
path: "/auth"
tags: ["Account"]
---

# Authenticate

`POST /auth`

Exchanges a login + password for a token

## Request body

- ControllersAuthRequestBody
  - `login` string
  - `password` string
  - `refresh_token` string

## Response `200`

OK

- ControllersAuthResponseBody
  - `access_token` string
  - `refresh_token` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2022-04-26** `3be297c54a9d` — 1 info
  - endpoint added
- **2022-04-26** `9677ed311d4f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/getalby/apis/lndhub-go/changes/auth/post.md)

---

[API](https://skmtc.dev/getalby/apis/lndhub-go.md) · [All operations](https://skmtc.dev/getalby/apis/lndhub-go/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getalby/lndhub-go/revisions/0891f2052750/schema)
