---
title: "POST /api/login/oauth/access_token"
method: POST
path: "/api/login/oauth/access_token"
tags: ["Token API"]
---

# POST /api/login/oauth/access_token

`POST /api/login/oauth/access_token`

get OAuth access token

## Query parameters

- `grant_type` string, required
- `client_id` string, required
- `client_secret` string, required
- `code` string, required

## Response `200`

The Response object

## Other responses

- `400` — The Response object
- `401` — The Response object

## Changes

- **2022-07-01** `52cacbf3790a` — 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
- **2021-12-03** `1f675248e9cb` — 2 info
  - api tag `Token API` added
  - api tag `api` removed

[Change history](https://skmtc.dev/casdoor/apis/casdoor-restful-api/changes/api/login/oauth/access_token/post.md)

---

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