---
title: "Create organization secret"
method: POST
path: "/v1/teams/{account_id}/secrets"
tags: ["Teams"]
---

# Create organization secret

`POST /v1/teams/{account_id}/secrets`

## Request

- Base URL: `https://api.privy.io`
- URL: `https://api.privy.io/v1/teams/{account_id}/secrets`
- Auth: none declared

Create an organization secret for an account. This endpoint is intended for dashboard-admin use.

## Path parameters

- `account_id` string, required

## Response `200`

The newly created organization secret.

- CreateOrganizationSecretResponse: Response returned when creating a new organization secret.
  - `id` string, required: Unique secret identifier
  - `last_four` string, required: Last four characters of the secret
  - `created_at` string, required: ISO 8601 creation timestamp
  - `revoked_at` string, nullable, required: ISO 8601 revocation timestamp, or null if active
  - `signing_public_key` string, nullable, required: P-256 public key in PEM format for request signing, or null if not configured
  - `organization_secret` string, required: The plaintext organization secret. Returned only at creation time.

## Changes

- **2026-10-16** `4facbfa7f9d4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/privy-io/apis/privy-api/changes/v1/teams/:account_id/secrets/post.md)

---

[API](https://skmtc.dev/privy-io/apis/privy-api.md) - [All operations](https://skmtc.dev/privy-io/apis/privy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/privy-io/apis/privy-api/revisions/3a2288470053?raw)
