---
title: "Authentication"
method: POST
path: "/api/accounts/login"
tags: ["Account"]
---

# Authentication

`POST /api/accounts/login`

Authenticate and retrieve access Token.

## Request body

- AccessControlAPILogin
  - `userName` string, nullable
  - `password` string, nullable

## Response `200`

accessToken: An access token that can be provided in subsequent calls to the Easee Cloud API.
refreshToken: A token that can be sent to the refresh_token service to refresh the accessToken.
expiresIn: The time period (in seconds) for which the access token is valid.
tokenType: Always 'Bearer'.
accessClaims: Role name.

- AccessControlAPIUserToken
  - `accessToken` string, nullable
  - `expiresIn` integer
  - `accessClaims` string[], nullable
  - `tokenType` string, nullable
  - `refreshToken` string, nullable

---

[API](https://skmtc.net/easee/apis/easee-cloud-api.md) · [All operations](https://skmtc.net/easee/apis/easee-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easee/easee-cloud-api/revisions/46ccab4af8b1/schema)
