POST
/
v2
/
watch
/
event
curl --request POST \
  --url https://api.prelude.dev/v2/watch/event \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    {
      "target": {
        "type": "phone_number",
        "value": "+30123456789"
      },
      "label": "onboarding.start",
      "confidence": "maximum"
    }
  ]
}'
{
  "status": "success",
  "request_id": "3d19215e-2991-4a05-a41a-527314e6ff6a"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
events
object[]
required

A list of events to dispatch.

Response

200
application/json
OK
status
enum<string>
required

The status of the events dispatch.

Available options:
success
Example:

"success"

request_id
string
required

A string that identifies this specific request. Report it back to us to help us diagnose your issues.

Example:

"3d19215e-2991-4a05-a41a-527314e6ff6a"