İçeriğe geç

/v1/identities/{id}/bootstrap-code

POST
/v1/identities/{id}/bootstrap-code
curl --request POST \
--url https://api.reindeer.example.tr/v1/identities/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/bootstrap-code \
--header 'Authorization: Bearer <token>'

Scope identities:write, fresh step-up. One-time code valid 24 hours, shown once. The issuer is recorded and, like the person who requested the identity, can never approve its requests. The code stops working when any of them is disabled. Only an identity that holds no certificate yet can get a code; to move a machine to a new key, revoke it and request a new identity (409 already_bootstrapped).

id
required
string format: uuid

One-time code, shown once

Media typeapplication/json
object
code
string
expires_at
string format: date-time

Example generated

{
"code": "example",
"expires_at": "2026-04-15T12:00:00Z"
}

RFC 9457 problem

Media typeapplication/problem+json
object
status
integer
code
string
title
string
detail
string
type
string

Example generated

{
"status": 1,
"code": "example",
"title": "example",
"detail": "example",
"type": "example"
}