Test cryptographic authentication
Test endpoint to verify that a user's cryptographic authentication is working correctly. This endpoint validates the user's signature and public key.
POST
/auth/test-auth
curl \
--request POST 'https://pay-api.aiic.nz/v1/auth/test-auth' \
--header "X-Public-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"data":{},"signature":"base64-encoded-signature","publicKey":"base64-encoded-public-key","timestamp":1703123456789,"nonce":"abc123-def456-ghi789"}'
Request examples
{
"data": {},
"signature": "base64-encoded-signature",
"publicKey": "base64-encoded-public-key",
"timestamp": 1703123456789,
"nonce": "abc123-def456-ghi789"
}
Response examples (200)
{
"success": true,
"message": "Authentication successful",
"userId": "string",
"publicKey": "string"
}
Response examples (401)
{
"success": false,
"error": "Invalid request parameters",
"errorCode": "INVALID_PARAMETERS",
"details": {},
"timestamp": "2025-05-04T09:42:00Z"
}