DKBSignDocs

API reference

POSTPublic

Verify external identity code

/api/v1/public/external-identity/verify

Exchange the email and 6-digit code for a short-lived opaque token. Send it as header X-Identity-Token (not Bearer) on the other public identity routes. Invalid/expired codes are indistinguishable from unknown emails (422 IDENTITY_CODE_INVALID).

Path parameters

This endpoint has no path parameters.

Query parameters

This endpoint has no query parameters.

Request body

FieldTypeDescription
email
Required
stringExternal signer email.
e.g. "signer@acme.test"
code
Required
stringExactly 6 digits.
e.g. "123456"

Responses

StatusMeaning
200See the example response.
422See the example response.
401Missing or invalid Bearer token.

Request

curl
curl -X POST 'https://api.dkbsigns.com/api/v1/public/external-identity/verify' \
  -H 'Content-Type: application/json' \
  -d '{"email":"signer@acme.test","code":"123456"}'

Response 200

json
{
  "access_token": "opaque-identity-token"
}