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

const client = new Prelude();

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

  console.log(response.id);
}

main();
{
  "id": "<string>"
}
import Prelude from "@prelude.so/sdk";

const client = new Prelude();

async function main() {
  const response = await client.watch.feedBack({
    feedback: {
      type: "CONFIRM_TARGET",
    },
    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.

feedback
object
required

You should send a feedback event back to Watch API when your user demonstrates authentic behavior.

Response

200
application/json
OK
id
string
required

A unique identifier for your feedback request.