---
title: "Create an authorization code (authenticated user)"
method: POST
path: "/auth/authorize"
tags: ["Auth"]
---

# Create an authorization code (authenticated user)

`POST /auth/authorize`

## Request body

- object
  - `appId` string, required
  - `redirectUri` string, required
  - `scopes` string[], required
  - `codeChallenge` string
  - `state` string

## Response `200`

Authorization code created

- object
  - `data` object, required
    - `code` string, required
    - `state` string

## Other responses

- `400` — Invalid redirect URI or scopes
- `404` — App not found

---

[API](https://skmtc.net/urantia/apis/urantia-papers-api.md) · [All operations](https://skmtc.net/urantia/apis/urantia-papers-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/urantia/urantia-papers-api/versions/fc43de3e7ffc/schema)
