Give an organization a key of its own
PUT
/api/platform/organizations/{id}/key
const url = 'https://forge.example.com/api/platform/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/key';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kek":"example","key":"example","azureTenantId":"example","reason":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://forge.example.com/api/platform/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/key \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kek": "example", "key": "example", "azureTenantId": "example", "reason": "example", "version": 1 }'A key in the customer’s own AWS KMS, Azure Key Vault or Google Cloud KMS, granted to this instance for encrypt and decrypt. It is tried before it is saved; the organization’s data keys are then wrapped by it, the older ones in the background. Send the organization’s version as you read it. A stale one answers 409 with currentVersion, the version it has now.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kek
required
string
key
required
string
azureTenantId
required
null | string
reason
required
string
version
required
null | integer | string format: int32
Example generated
{ "kek": "example", "key": "example", "azureTenantId": "example", "reason": "example", "version": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
fromSettings
required
boolean
keys
required
Array<object>
object
kek
required
string
key
required
string
azureTenantId
required
null | string
current
required
boolean
proven
required
boolean
createdAt
required
string format: date-time
retiredAt
required
null | string format: date-time
dataKeys
required
Array<object>
object
version
required
integer | string format: int32
state
required
string
createdAt
required
string format: date-time
retiredAt
required
null | string format: date-time
disabledAt
required
null | string format: date-time
wrappedBy
required
string
canRotate
required
boolean
version
integer | string format: int32
Example generated
{ "fromSettings": true, "keys": [ { "kek": "example", "key": "example", "azureTenantId": "example", "current": true, "proven": true, "createdAt": "2026-04-15T12:00:00Z", "retiredAt": "2026-04-15T12:00:00Z" } ], "dataKeys": [ { "version": 1, "state": "example", "createdAt": "2026-04-15T12:00:00Z", "retiredAt": "2026-04-15T12:00:00Z", "disabledAt": "2026-04-15T12:00:00Z", "wrappedBy": "example" } ], "canRotate": true, "version": 1}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}