---
title: "Validate authorization code"
method: POST
path: "/v1/org/app-install-code/validate"
tags: ["org"]
---

# Validate authorization code

`POST /v1/org/app-install-code/validate`

## Request body

- AppInstallCodeValidateRequest
  - `authorizationCode` string, required — authorization code token value
  - `issueAccessToken` boolean, required — flag indicating if authorization code should be exchanged for an access token

## Response `200`

authorization code validated

- AppInstallCodeValidateResponse
  - `userId` string, required — userId that created the app install authorization code
  - `data` object — data associated with the app install authorization code
  - `accessToken` string — access token issued from app install authorization code

## Other responses

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

---

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