---
title: "Create a new organization secret"
method: POST
path: "/organizations/{org-slug}/secrets"
tags: ["secrets"]
---

# Create a new organization secret

`POST /organizations/{org-slug}/secrets`

Create a new organization secret

## Path parameters

- `org-slug` string, required

## Request body

- object
  - `expand_in_step_inputs` boolean
  - `is_exposed_for_pull_requests` boolean
  - `is_protected` boolean
  - `name` string, required
  - `scope` string
  - `value` string, required

## Response `201`

Created

- ServiceDtoCreatedSecretNoValue
  - `expand_in_step_inputs` boolean
  - `id` string
  - `is_exposed_for_pull_requests` boolean
  - `is_protected` boolean
  - `name` string
  - `scope` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found

---

[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)
