Skip to main content
POST
/
v2
/
verification
/
management
/
phone-numbers
/
{action}
Add phone number to allow or block list
curl --request POST \
  --url https://api.prelude.dev/v2/verification/management/phone-numbers/{action} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone_number": "+30123456789"
}'
{
  "phone_number": "+30123456789"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

action
enum<string>
required

The action type - either "allow" or "block"

Available options:
allow,
block

Body

application/json
phone_number
string<phone_number>
required

An E.164 formatted phone number to add to the list.

Examples:

"+30123456789"

Response

Created

phone_number
string<phone_number>
required

The E.164 formatted phone number that was added to the list.

Examples:

"+30123456789"

I