ServicesWorkloadsHTTP APIPublic keys

Add_key

POST
/api/workloads/{workload_id}/keys

Register a public key with workload manage credentials permission.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

workload_id*string

Request Body

application/json
  1. body

A public JSON Web Key with a key identifier. Private key material is rejected.

jwk*unknown

Response Body

Success

application/json
  1. response

The registered public key.

key*

A public JSON Web Key whose assertions authenticate the Workload.

curl -X POST 'https://api.spiraldb.dev/api/workloads/string/keys' \  -H 'Content-Type: application/json' \  -d '{  "jwk": null}'
{  "key": {    "jwk": null,    "kid": "string",    "workloadId": "string"  }}