401 Unauthorized
Cause: Invalid API key.
Response:
{
"success": false,
"data": null,
"message": "Invalid API Key."
}
403 Unauthorized
Cause: Missing API key.
Response:
{
"success": false,
"data": null,
"message": "Unauthenticated.."
}
403 Forbidden
Cause: API key is disabled.
Response:
{
"success": false,
"data": null,
"message": "Forbidden"
}
404 Not Found
Cause: ocument with the provided document_uuid not found or the document does not belong to the user associated with the API key.
Response:
{
"success": false,
"data": null,
"message": "Document not found."
}
500 Internal Server Error
Cause: An unexpected error occurred during OTP generation.
Response:
{
"success": false,
"data": null,
"message": "An error occurred while generating the OTP."
}