Skip to content

Rotate under the tenant owner's console token or this install's current key.

POST
/installs/{id}/key
curl --request POST \
--url https://api.canopyhq.dev/installs/example/key \
--header 'Authorization: Bearer <token>'
id
required

Opaque; never the key, never anything the vendor chose.

string

The install whose key changes.

The tenant owner or vendor holding the current install key receives a new key once. The old key stops resolving immediately.

Media typeapplication/json

A freshly issued key, returned once and never stored in plain text.

object
key
required
string
Examplegenerated
{
"key": "example"
}

Only the tenant owner or this install’s current key may rotate.

The tenant has no such install, or it was deleted.

Another key-management operation won; the owner may retry.