Receiving Callbacks
A callback is how Metric sends you the result of a verification. When the verification finishes, we post that result to a URL you host.
What is a callback?​
Each API key pair has its own callback URL. A verification made with that client id and secret is reported to that URL. Another key pair has its own URL.
Liveness, fingerprint, and every other service follow this same pattern. The body is the JSON result for that verification. The fields for each service stay on that service's own pages.
How a callback works​
-
Set a callback URL on an API key pair. The URL belongs to that client id and secret. It is not chosen per service.
-
A verification finishes. The check runs with that key pair, whichever service it uses.
-
Metric posts the result. We send the JSON for that verification to the key pair's callback URL.
Securing callbacks​
Callbacks can be signed, and signed and encrypted, per API key. Securing Callbacks explains both.