---
title: "Create an Android keystore file"
method: POST
path: "/apps/{app-slug}/android-keystore-files"
tags: ["android-keystore-file"]
---

# Create an Android keystore file

`POST /apps/{app-slug}/android-keystore-files`

Add a new Android keystore file to an app. `keystore_file_name` is required if there is already an existing keystore file for the app. It will determine the environment variable key to be used to refer to the keystore file in builds. E.g. `BITRISE_ANDROID_KEYSTORE_<keystore_file_name>_URL`. The `keystore_file_name` can only contain letters, numbers, and underscores.

## Path parameters

- `app-slug` string, required

## Request body

- V0AndroidKeystoreFileUploadParams
  - `alias` string, required
  - `keystore_file_name` string
  - `password` string, required
  - `private_key_password` string, required
  - `upload_file_name` string, required
  - `upload_file_size` integer, required

## Response `201`

Created

- V0ProjectFileStorageUploadResponseModel
  - `data` V0ProjectFileStorageUploadResponseItemModel
    - `exposed_meta_datastore` object
    - `is_expose` boolean
    - `is_protected` boolean
    - `processed` boolean
    - `slug` string
    - `upload_file_name` string
    - `upload_file_size` integer
    - `upload_url` string
    - `user_env_key` 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/revisions/89468e4a014b/schema)
