---
title: "Get Token"
method: POST
path: "/connect/token"
---

# Get Token

`POST /connect/token`

## Request

- Base URL: `https://sts.test.nordpoolgroup.com`
- URL: `https://sts.test.nordpoolgroup.com/connect/token`
- Auth: API key in header `Authorization` and API key in header `Authorization`

How to get an access token from the STS server

***
**Token Service endpoint URL's:**
**Production:**     https://sts.nordpoolgroup.com/connect/token
**Member test environment:**  https://sts.test.nordpoolgroup.com/connect/token

## Request body `application/x-www-form-urlencoded`

- object
  - `grant_type` string, required: it's always set to a fixed "password" string (w/o quotes)
  - `scope` string, required: Use the scope string here
  - `username` string, required: Your username...
  - `password` string, required: ... and password

## Response `200`

200

- object
  - `access_token` string
  - `expires_in` integer
  - `token_type` string

## Other responses

- `400`: 400
- `401`: 401
- `404`: 404

---

[API](https://skmtc.dev/nordpoolgroup/apis/ststestnordpoolgroup.md) - [All operations](https://skmtc.dev/nordpoolgroup/apis/ststestnordpoolgroup/llms.txt) - [OpenAPI document](https://skmtc.dev/nordpoolgroup/apis/ststestnordpoolgroup/revisions/2d91e4194735?raw)
