---
title: "Create an account"
method: POST
path: "/v2/users"
tags: ["Account"]
---

# Create an account

`POST /v2/users`

Create a new account with a login and password

## Request body

- V2controllersCreateUserRequestBody
  - `login` string
  - `password` string

## Response `200`

OK

- V2controllersCreateUserResponseBody
  - `id` integer
  - `login` string
  - `password` string

## Other responses

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

## Changes

- **2022-06-17** `222a5feac2e3` — 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/v2/users/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)
