---
title: "Create App"
method: POST
path: "/idp/apps"
tags: ["Identity Provider"]
---

# Create App

`POST /idp/apps`

Create a new OAuth application.

## Headers

- `X-Chutes-Hotkey` string, nullable
- `X-Chutes-Signature` string, nullable
- `X-Chutes-Nonce` string, nullable
- `Authorization` string, nullable

## Request body

- OAuthAppCreateRequest — Request model for creating an OAuth application.
  - `name` string, required
  - `description` string, nullable
  - `redirect_uris` string[], required
  - `homepage_url` string, nullable
  - `logo_url` string, nullable
  - `public` boolean
  - `refresh_token_lifetime_days` integer, nullable
  - `allowed_scopes` string[], nullable

## Response `200`

Successful Response

- OAuthAppCreationResponse — Response model when creating an OAuth application (includes secret).
  - `app_id` string, required
  - `client_id` string, required
  - `user_id` string, required
  - `name` string, required
  - `description` string, nullable
  - `redirect_uris` string[], required
  - `homepage_url` string, nullable
  - `logo_url` string, nullable
  - `active` boolean, required
  - `public` boolean, required
  - `refresh_token_lifetime_days` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `client_secret` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chutes/apis/fastapi.md) · [All operations](https://skmtc.net/chutes/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chutes/fastapi/revisions/352418d4e3a2/schema)
