Generate registration challenge

Generate registration challenge

post
Path parameters
idstringRequired

Id of the target request

Body
workspaceNamestringRequired

Workspace name

Responses
200
Successful response
application/json
Responseany of
or
post
POST /rest/requests/{id}/generate-registration-challenge HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 253

{
  "workspaceName": "text",
  "deviceData": {
    "name": "text",
    "psdModel": "BLUE",
    "pubKey": "text",
    "confidentialityKey": "text",
    "psdEphemeralKey": "text",
    "psdEphemeralKeyAttestation": {
      "codeHash": "text",
      "attestationPub": "text",
      "certificate": "text",
      "signature": "text"
    }
  }
}
{
  "type": "CREATE_ADMIN",
  "data": {
    "name": "text",
    "deviceType": "PSD",
    "deviceUserId": "text",
    "registration": {
      "subState": "PENDING",
      "deviceData": {
        "name": "text",
        "psdModel": "BLUE",
        "pubKey": "text",
        "confidentialityKey": "text",
        "psdEphemeralKey": "text",
        "psdEphemeralKeyAttestation": {
          "codeHash": "text",
          "attestationPub": "text",
          "certificate": "text",
          "signature": "text"
        }
      },
      "challenge": {
        "challenge": "text",
        "ephemeralPublicKey": "text",
        "ephemeralPublicKeyAttestation": {
          "codeHash": "text",
          "attestationPub": "text",
          "certificate": "text",
          "signature": "text"
        },
        "handshake": "text",
        "handshakeAttestation": {
          "codeHash": "text",
          "attestationPub": "text",
          "certificate": "text",
          "signature": "text"
        },
        "u2fRegisterData": "text",
        "ciphertext": "text",
        "requestId": "text"
      }
    }
  },
  "id": "text",
  "legacyId": 1,
  "state": "INITIAL",
  "reviewSteps": [
    {
      "stageName": "text",
      "quorum": 1
    }
  ],
  "currentStepIndex": 1,
  "expiredAt": "2025-06-22T14:23:56.208Z",
  "targetId": "text",
  "reviews": [
    {
      "stepIndex": 1,
      "userId": "text",
      "status": "PENDING",
      "createdAt": "2025-06-22T14:23:56.208Z",
      "updatedAt": "2025-06-22T14:23:56.208Z"
    }
  ],
  "createdAt": "2025-06-22T14:23:56.208Z",
  "updatedAt": "2025-06-22T14:23:56.208Z"
}