---
title: "Get Token"
method: POST
path: "/oauth/token"
tags: ["Auth"]
---

# Get Token

`POST /oauth/token`

Get authentication token

## Request body

- BearerAccessTokenRequest
  - `grant_type` 'client_credentials', required — The grant type.
  - `scope` string — Not used. The JWT scope.

## Response `200`

Response containing access token detail

- BearerAccessTokenResponse
  - `token_type` string — The token type, which in this case is "bearer".
  - `access_token` string, required — The access token.
  - `expires_in` integer, required — Token expiry time in seconds.
  - `scope` string — Not used.

## Other responses

- `4XX` — Error message
- `5XX` — Error message

## Changes

- **2025-03-03** `9beb1e1df3bd` — 1 breaking
  - removed the media type `x-www-form-urlencoded` from the request body
- **2025-02-04** `9433593378b5` — 1 breaking
  - the response property `scope` became optional for the status `200`

[Change history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/oauth/token/post.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) · [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/m3ter-com/m3ter-api/revisions/ac93d1a9e6d9/schema)
