Skip to main content

Register Ephemeral Key With Secondary Authentication

This endpoint is used to register ephemeral keys for users, it will start a secondary authentication flow using email, SMS, or telephone - the service will pick the most appropriate method based on the contents of the provided auth token or it can be specified as a query parameter.

HTTP Request

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

Request Parameters

ParameterRequiredDescription
ephemeralKeytrueBase64 encoded ephemeral Ed25519 key

Query Parameters

ParameterRequiredDescription
methodfalseOne of EMAIL, TELEPHONE, SMS

Example

CURL
# Generate a new ephemeral key
openssl genpkey -algorithm ED25519 -out private.key

# Format the public key for use with the JSON request
PUBLIC_KEY=`openssl pkey -in private.key -pubout -outform DER -out - | base64`

curl "https://api.doordeck.com/auth/certificate/verify" \
-X POST \
-H "Authorization: Bearer TOKEN" \
-H 'content-type: application/json' \
--data-binary '{"ephemeralKey":"'${PUBLIC_KEY}'"}'
Remember
  • Replace TOKEN with your access token.