# Create an application **POST /api/applications** Create a new application with the given data. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ## Body parameters Content-type: application/json - **name** (string) - **description** (string | null) - **type** (string) - **oidcClientMetadata** (object) - **customClientMetadata** (object) - **customData** (object) arbitrary - **isThirdParty** (boolean) - **protectedAppMetadata** (object) The data for protected app, this feature is not available for open source version. ## Responses ### 200: The application was created successfully. #### Body Parameters: application/json (object) - **tenantId** (string) - **id** (string) - **name** (string) - **secret** (string) The internal client secret. Note it is only used for internal validation, and the actual secrets should be retrieved from `/api/applications/{id}/secrets` endpoints. - **description** (string | null) - **type** (string) - **oidcClientMetadata** (object) - **customClientMetadata** (object) - **protectedAppMetadata** (object | null) - **customData** (object) arbitrary - **isThirdParty** (boolean) - **createdAt** (number) ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 422: Validation error. Please check the request body. ### 500: Internal Server Error [Powered by Bump.sh](https://bump.sh)