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

# Create organization secret

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

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.
  - `created_at` string, required — ISO 8601 creation timestamp
  - `id` string, required — Unique secret identifier
  - `last_four` string, required — Last four characters of the secret
  - `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.

---

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