Skip to main content

Verify Ephemeral Key Registration

This endpoint is used to check the verification code sent to a use, it requires the ephemeral key sign the verification code so that Sentry Interactive is sure the same ephemeral key is used.

HTTP Request

POST https://api.doordeck.com/auth/certificate/check

Request Parameters

ParameterRequiredDescription
verificationSignaturetrueBase64 encoded signature of the verification code with the ephemeral key

Example

CURL
# Calculate the signature of the authentication code using the previously generated private key
echo -n "AUTHENTICATION_CODE" > code.txt
SIGNATURE=$(openssl pkeyutl -sign -inkey private.key -rawin -in code.txt | base64)

curl "https://api.doordeck.com/auth/certificate/check" \
-X POST \
-H "Authorization: Bearer TOKEN" \
-H 'content-type: application/json' \
--data-binary '{"verificationSignature":"'${SIGNATURE}'"}'
Remember

Replace TOKEN with your access token.