import Prelude from "@prelude.so/sdk"; const client = new Prelude(); async function main() { const check = await client.verification.check({ target: { type: "phone_number", value: "+30123456789", }, code: "123456", }); console.log(check.id); } main();
{ "id": "vrf_01jc0t6fwwfgfsq1md24mhyztj", "status": "success", "metadata": { "correlation_id": "<string>" }, "request_id": "<string>" }
Check the validity of a verification code.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object