---
title: "Create a new app"
method: POST
path: "/api/v1/apps"
tags: ["Apps"]
---

# Create a new app

`POST /api/v1/apps`

Required scope - write_app

## Request body

- PostAppReq
  - `name` string, required
  - `type` 'spa' | 's2s', required
  - `scopes` string[], required
  - `redirectUris` string[], required

## Response `201`

- object
  - `app` AppDetail
    - `id` number, required
    - `clientId` string, required
    - `name` string, required
    - `isActive` boolean, required
    - `type` 'spa' | 's2s', required
    - `secret` string, required
    - `redirectUris` string[], required
    - `useSystemMfaConfig` boolean, required
    - `requireEmailMfa` boolean, required
    - `requireOtpMfa` boolean, required
    - `requireSmsMfa` boolean, required
    - `allowEmailMfaAsBackup` boolean, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable, required
    - `scopes` string[], required

## Changes

- **2025-05-07** `426c1916f602` — 5 info
  - added the required property `app/allOf[#/components/schemas/App]/allowEmailMfaAsBackup` to the response with the `201` status
  - added the required property `app/allOf[#/components/schemas/App]/requireEmailMfa` to the response with the `201` status
  - added the required property `app/allOf[#/components/schemas/App]/requireOtpMfa` to the response with the `201` status
  - added the required property `app/allOf[#/components/schemas/App]/requireSmsMfa` to the response with the `201` status
  - …1 more
- **2024-10-03** `795cad873b47` — 11 info
  - the response property `app/allOf[#/components/schemas/App]/clientId` became required for the status `201`
  - the response property `app/allOf[#/components/schemas/App]/createdAt` became required for the status `201`
  - the response property `app/allOf[#/components/schemas/App]/deletedAt` became required for the status `201`
  - the response property `app/allOf[#/components/schemas/App]/id` became required for the status `201`
  - …7 more
- …earlier changes not shown

[Full history](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/changes/api/v1/apps/post.md)

---

[API](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api.md) · [All operations](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/llms.txt) · [OpenAPI document](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/revisions/426c1916f602?raw)
