---
title: "Get Token With Client Credentials"
method: POST
path: "/method-api-gateway/api/auth/getToken"
tags: ["auth"]
---

# Get Token With Client Credentials

`POST /method-api-gateway/api/auth/getToken`

## Request body

- object
  - `client_id` string, required
  - `client_secret` string, required
  - `grant_type` 'client_credentials', required
  - `scope` string

## Response `200`

Response with status 200

- TypeAuthTokenResponse — An OAuth token response from Keycloak.
  - `access_token` string, required
  - `expires_in` integer, required
  - `refresh_token` string

---

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