Skip to main content

Responses

When utilizing the Facia Verification API, anticipate receiving two distinct types of responses subsequent to a verification request. Initially, you'll receive an HTTP response tailored to your request, followed by a callback response. Both responses will be formatted in JSON and will include the header "application/json."

HTTP Status Codes:

Facia Verification API relies on traditional HTTP response codes to signify the outcome of an API request—whether it was successful or encountered an error. Each response is structured in JSON format alongside a corresponding HTTP status code.

Following is a list of HTTP codes that are generated in responses by Facia.

HTTP CodeHTTP MessageMessage
200OKSuccess
201CreatedCreated
400Bad RequestBad Request: One or more parameters are invalid or missing
401UnauthorizedUnauthorized: Invalid signature key provided in the request
402Request FailedInvalid request data: missing required parameters
403ForbiddenForbidden: Service not allowed
404Not FoundResource not found
429Too Many RequestsToo Many Attempts
500Server ErrorInternal Server Error
504Gateway TimeoutServer error
524Timeout from CloudflareUnofficial Server Error

Callback Events:

Multiple server-to-server calls are initiated to communicate updates on verification status to Facia’s clients. This functionality ensures that clients can maintain real-time updates on their end, even if the end-user's session is interrupted during the process.

Following are the events that are sent from our side to clients servers via their callback URL.

EventDescription
request.initiatedThis event is returned when a verification is inititated.
liveness.acceptedThis event is returned when a verification is accepted.
liveness.rejectedThis event is returned when a verification is rejected.