---
title: "POST /api/add-token"
method: POST
path: "/api/add-token"
tags: ["Token API"]
---

# POST /api/add-token

`POST /api/add-token`

add token

## Request body

- ObjectToken
  - `accessToken` string
  - `application` string
  - `code` string
  - `codeChallenge` string
  - `codeExpireIn` integer
  - `codeIsUsed` boolean
  - `createdTime` string
  - `expiresIn` integer
  - `name` string
  - `organization` string
  - `owner` string
  - `refreshToken` string
  - `scope` string
  - `tokenType` string
  - `user` string

## Response `200`

The Response object

## Changes

- **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/add-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)
