---
title: "POST /api/add-application"
method: POST
path: "/api/add-application"
tags: ["Application API"]
---

# POST /api/add-application

`POST /api/add-application`

add an application

## Request body

- ObjectApplication
  - `affiliationUrl` string
  - `cert` string
  - `clientId` string
  - `clientSecret` string
  - `createdTime` string
  - `description` string
  - `displayName` string
  - `enableAutoSignin` boolean
  - `enableCodeSignin` boolean
  - `enableLinkWithEmail` boolean
  - `enablePassword` boolean
  - `enableSamlCompress` boolean
  - `enableSignUp` boolean
  - `enableSigninSession` boolean
  - `enableWebAuthn` boolean
  - `expireInHours` integer
  - `forgetUrl` string
  - `formBackgroundUrl` string
  - `formCss` string
  - `formCssMobile` string
  - `formOffset` integer
  - `formSideHtml` string
  - `grantTypes` string[]
  - `homepageUrl` string
  - `logo` string
  - `name` string
  - `orgChoiceMode` string
  - `organization` string
  - `organizationObj` ObjectOrganization
    - `accountItems` ObjectAccountItem[]
      - `modifyRule` string
      - `name` string
      - `viewRule` string
      - `visible` boolean
    - `countryCodes` string[]
    - `createdTime` string
    - `defaultApplication` string
    - `defaultAvatar` string
    - `displayName` string
    - `enableSoftDeletion` boolean
    - `favicon` string
    - `initScore` integer
    - `isProfilePublic` boolean
    - `languages` string[]
    - `masterPassword` string
    - `mfaItems` ObjectMfaItem[]
      - `name` string
      - `rule` string
    - `name` string
    - `owner` string
    - `passwordOptions` string[]
    - `passwordSalt` string
    - `passwordType` string
    - `tags` string[]
    - `themeData` ObjectThemeData
      - `borderRadius` integer
      - `colorPrimary` string
      - `isCompact` boolean
      - `isEnabled` boolean
      - `themeType` string
    - `websiteUrl` string
  - `owner` string
  - `providers` ObjectProviderItem[]
    - `alertType` string
    - `canSignIn` boolean
    - `canSignUp` boolean
    - `canUnlink` boolean
    - `name` string
    - `owner` string
    - `prompted` boolean
    - `provider` ObjectProvider
      - `appId` string
      - `bucket` string
      - `category` string
      - `cert` string
      - `clientId` string
      - `clientId2` string
      - `clientSecret` string
      - `clientSecret2` string
      - `content` string
      - `createdTime` string
      - `customAuthUrl` string
      - `customLogo` string
      - `customTokenUrl` string
      - `customUserInfoUrl` string
      - `disableSsl` boolean
      - `displayName` string
      - `domain` string
      - `enableSignAuthnRequest` boolean
      - `endpoint` string
      - `host` string
      - `idP` string
      - `intranetEndpoint` string
      - `issuerUrl` string
      - `metadata` string
      - `method` string
      - `name` string
      - `owner` string
      - `pathPrefix` string
      - `port` integer
      - `providerUrl` string
      - `receiver` string
      - `regionId` string
      - `scopes` string
      - `signName` string
      - `subType` string
      - `templateCode` string
      - `title` string
      - `type` string
      - `userMapping` unknown
    - `rule` string
  - `redirectUris` string[]
  - `refreshExpireInHours` integer
  - `samlReplyUrl` string
  - `signinHtml` string
  - `signinUrl` string
  - `signupHtml` string
  - `signupItems` ObjectSignupItem[]
    - `name` string
    - `prompted` boolean
    - `required` boolean
    - `rule` string
    - `visible` boolean
  - `signupUrl` string
  - `tags` string[]
  - `termsOfUse` string
  - `themeData` ObjectThemeData
    - `borderRadius` integer
    - `colorPrimary` string
    - `isCompact` boolean
    - `isEnabled` boolean
    - `themeType` string
  - `tokenFormat` string

## Response `200`

The Response object

---

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