---
title: "Save the application at the end of the app registration process"
method: POST
path: "/apps/{app-slug}/finish"
tags: ["app-setup"]
---

# Save the application at the end of the app registration process

`POST /apps/{app-slug}/finish`

Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app).

## Path parameters

- `app-slug` string, required

## Request body

- V0AppFinishParams
  - `config` string — Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-test-android-2`, `flutter-config-test-both-0`, `flutter-config-test-ios-1`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`.
  - `envs` object — Environment variables for the application workflows, e.g. {"env1":"val1","env2":"val2"}
  - `mode` string — config specification mode, has to be specified with `manual` value
  - `organization_slug` string — The slug of the organization, who will be the owner of the application, if it's not specified, then the authenticated user will be the owner
  - `project_type` string, required — The type of your project (`android`, `ios`, `cordova`, `other`, `xamarin`, `macos`, `ionic`, `react-native`, `fastlane`, `flutter`, null)
  - `stack_id` string, required — The id of the stack the application will be built (these can be found in the [system report](https://github.com/bitrise-io/bitrise.io/tree/master/system_reports) file names)

## Response `200`

OK

- V0AppFinishRespModel
  - `branch_name` string
  - `build_trigger_token` string
  - `is_webhook_auto_reg_supported` boolean
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

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