Keys
Upsert a Key
Create or Update Key using ID or name.
put/{workspace}/keys/{KeyIdOrName}
Path parameters
workspacestring required
Example:team-payments
The name of the workspace
Request body
Example request
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}Response
Successfully upserted Key
Example response
{
"id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
"jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}",
"kid": "42",
"name": "a-key",
"pem": {
"private_key": "-----BEGIN",
"public_key": "-----BEGIN"
},
"set": {
"id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031"
}
}