Skip to main content

Get security keys

Security keys are a fundamental element for safeguarding your organization's data. It includes a public, private, and secret key. This endpoint enables you to retrieve your security keys.

How to use

You can use the following cURL to obtain a response from this endpoint:

curl --location --request GET https://nodeapi.superviz.com/security \
--header "Authorization: Bearer ${TOKEN}" \
--header "passphrase: ${PASSPHRASE}"

HTTP Request

GET https://nodeapi.superviz.com/security

Headers

When using this endpoint, you need to provide the Authorization Bearer token and the passphrase of your organization. The following headers are required:

NameDescription
AuthorizationRequired. You must utilize the authentication token.
passphraseRequired. The passphrase of your organization, which you can obtain by using the security keys endpoint.

Response

Status code 200 will indicate a successful result and will contain your security keys. The response will be in JSON format and include the following fields:

NameTypeDescription
passphrasestringThe passphrase of your organization.
publicKeystringThe public key of your organization.
privateKeystringThe private key of your organization.
secretKeystringThe 128 randomly selected English words. This key functions as a password to manage and recover data in the event of passphrase loss.

Example:

{
"passphrase": "your-passphrase",
"publicKey": "your-public-key",
"privateKey": "your-private",
"secretKey": "your-secret"
}
warning

In case of the loss of your passphrase, you can use the secret key alongside your public and private keys to recover your data. Therefore, it is crucial to keep your secret key in a safe place.