---
title: "Refresh Token"
method: POST
path: "/oauth2/token"
tags: ["Auth API"]
---

# Refresh Token

`POST /oauth2/token`

This endpoint lets you obtain an authorization token. This endpoint only supports authorization for the code grant flow.

## Headers

- `Authorization` string

## Response `200`

A successful response with tokens

- Tokens
  - `refresh_token` string
  - `access_token` string
  - `id_token` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/grubtech/apis/grubtech-auth-server.md) · [All operations](https://skmtc.net/grubtech/apis/grubtech-auth-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grubtech/grubtech-auth-server/revisions/21688b6dcb69/schema)
