GET /generate-keypair
Generate a new public/private keypair.
{{baseUrl}}/generate-keypair
Headers
Header | Type | Description |
---|---|---|
x-api-key | string | The API key required for authentication. |
Click Send
and wait for the response.
Response (Success - 201)
Parameter | Type | Description |
---|---|---|
publicKey | string | The generated public key, which can be shared for encryption or verification. |
privateKey | string | The generated private key, which must be stored securely by the client. |
Sample Response Body:
{
"publicKey": "04acff8a2a20e9ed2443a45a84319b7f39948b5ca058b1b783f1afef518eb9a1d23db646cef5019a4a36b77ab3d1e524b295cb49c4f5d7db3ea936d76dcb65855d",
"privateKey": "324b566c75c23152002e0cefb785d5be093e7f141f39b52d2c4c2363d32e9374"
}
Response (Server Error - 500)
Parameter | Type | Description |
---|---|---|
error | string | Describes the error that occurred. |
Sample Response Body:
{
"error": "Failed to generate keypair"
}