---
title: "Generate or regenerate a long-lived access token for the app"
method: POST
path: "/v1/app/org/{orgId}/install/{appUserId}/token"
tags: ["app"]
---

# Generate or regenerate a long-lived access token for the app

`POST /v1/app/org/{orgId}/install/{appUserId}/token`

## Path parameters

- `orgId` string, required
- `appUserId` string, required

## Request body

- ScopeRequest
  - `scope` string, required — scope being requested

## Response `201`

successful operation

- AccessTokenResponse
  - `access_token` string, required — access token value
  - `token_type` string — access token type
  - `expires_in` integer, required — expiration time of token, in seconds
  - `refresh_token` string — refresh token value
  - `scope` string — scope of the access token
  - `redirect_uri` string — redirect uri of the access token

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

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