Skip to main content

Create service user public/private key pair

Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client.

Path Parameters
    id string required

    The unique ID of the service user to create a key for.

Request Body required
    title string
Responses

A successful response.


Schema
    key object
    type string
    kid string
    principal_id string
    private_key RSA private key as string
POST /v1beta1/serviceusers/:id/keys

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
id — path required
Body required
{
"title": "string"
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/serviceusers/:id/keys' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"title": "string"
}'