ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Create Key for service account

Deprecated: use user service v2 AddKey instead.

If a public key is not supplied, a new key is generated and will be returned in the response. Make sure to store the returned key. If an RSA public key is supplied, the private key is omitted from the response. Machine keys are used to authenticate with jwt profile.

POST
/users/{user_id}/keys

Path Parameters

user_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/users/string/keys" \  -H "Content-Type: application/json" \  -d '{}'
{
  "keyId": "string",
  "keyDetails": "string",
  "details": {
    "sequence": 0,
    "creationDate": "2023-01-15T01:30:15.01Z",
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string"
  }
}

Was this page helpful?