Skip to main content
POST
Create an encrypted record

Authorizations

Authorization
string
header
required

Human personal access token (sk-actrl-pat-...).

Headers

Idempotency-Key
string

Stable key for safely retrying this write. Reuse the same key only with the same request body; results are retained for 24 hours and conflicting reuse returns 409.

Body

application/json
accountId
string<uuid>
required

Account that owns the project.

projectId
string<uuid>
required

Project where the record will be created.

name
string
required

Record name.

tags
string[]
required

Searchable labels.

ciphertext
string | null
required

Required for General; forbidden for Environment except null.

cipherMeta
object | null
required

Client-generated General encryption metadata.

wrappedDek
object
required

Encrypted record key. AIRCTRL stores it without opening it.

secretFormat
enum<string>
required
Available options:
plain,
json,
env,
password,
api_key,
database,
ssh,
certificate,
oauth_client,
cloud_iam,
service_account,
webhook,
license,
totp
accessScope
enum<string>

Omitted by older clients: General. Immutable after creation.

Available options:
general
environmentValues
object[]

Optional independently encrypted Development, Staging and Production values. Empty is allowed.

projectWrappedDek
object

Record key encrypted for the project key. Required when replacing an existing project copy; otherwise optional.

projectKeyVersion
integer

Required when projectWrappedDek is sent. Version of the project key used by the client; stale or pending re-key material is rejected.

Required range: x >= 1
secretDueAt
string<date-time> | null

Optional review or expiration time.

rotationIntervalDays
integer | null
Required range: x >= 1

Response

Record created.

ok
enum<boolean>
required
Available options:
true
data
object
required