---
title: "Get access token"
method: POST
path: "/v1/auth/providers/token"
tags: ["Auth"]
---

# Get access token

`POST /v1/auth/providers/token`

## Request

- Base URL: `https://api.dashelectric.co`
- URL: `https://api.dashelectric.co/v1/auth/providers/token`
- Auth: none required

Exchange your `client_key` + `client_secret` (issued from the Dash
Next Portal) for a bearer token. Include the returned `token` as
`Authorization: Bearer <token>` on every other endpoint.

## Request body

- TokenRequest
  - `client_key` string, required
  - `client_secret` string, required

## Response `200`

OK

- TokenResponse
  - `token` string

## Other responses

- `400`: Bad Request — field validation failed
- `401`: Unauthorized — credentials rejected

---

[API](https://skmtc.dev/dashelectric/apis/dash-open-api.md) - [All operations](https://skmtc.dev/dashelectric/apis/dash-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dashelectric/apis/dash-open-api/revisions/7544dae33009?raw)
