---
title: "Create new Oauth app"
method: POST
path: "/api/v5/oauth/applications/new"
tags: ["Oauth-apps"]
---

# Create new Oauth app

`POST /api/v5/oauth/applications/new`

New application handler

## Request body

- BodyOauthNewApplicationHandlerApiV5OauthApplicationsNewPost
  - `oauth_application` OauthApplicationInCreate, required
    - `name` string, required
    - `redirectUri` string, required
    - `makePublic` boolean
    - `description` string

## Response `201`

Successful Response

- OauthApplicationInResponse
  - `oauthApplication` OauthApplication, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `name` string, required
    - `uid` string, required
    - `secret` string, required
    - `redirectUri` string, required
    - `scopes` string
    - `ownerId` integer
    - `ownerType` string
    - `appUrl` string
    - `appIcon` string
    - `approved` boolean
    - `public` boolean
    - `voltCost` integer
    - `makePublic` boolean
    - `publisherName` string
    - `description` string
    - `contactEmail` string
    - `habitCategoryId` integer

## Other responses

- `422` — Validation Error

---

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