POST
/
v2
/
watch
/
predict
import Prelude from "@prelude.so/sdk";

const client = new Prelude();

async function main() {
  const response = await client.watch.predict({
    target: {
      type: "phone_number",
      value: "+30123456789",
    }
  });

  console.log(response.id);
}

main();
{
  "id": "<string>",
  "prediction": "allow",
  "reasoning": {
    "cause": "none",
    "score": 123
  }
}
import Prelude from "@prelude.so/sdk";

const client = new Prelude();

async function main() {
  const response = await client.watch.predict({
    target: {
      type: "phone_number",
      value: "+30123456789",
    }
  });

  console.log(response.id);
}

main();

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
target
object
required

The verification target. Either a phone number or an email address. To use the email verification feature contact us to discuss your use case.

signals
object

It is highly recommended that you provide the signals to increase prediction performance.

Response

200
application/json
OK
id
string
required

A unique identifier for your prediction request.

prediction
enum<string>
required

A label indicating the trustworthiness of the phone number.

Available options:
allow,
block
reasoning
object
required