AddPstnBlackListItem

View as Markdown

Add a new phone number to the PSTN blacklist. Use blacklist to block incoming calls from specified phone numbers to numbers purchased from Voximplant. Since we have no control over exact phone number format for calls from SIP integrations, blacklisting such numbers should be done via JavaScript scenarios.

Allowed roles: Owner, Admin.

Authentication

AuthorizationBearer
Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the `Authorization` header as a Bearer value: ``` Authorization: Bearer $VOXIMPLANT_TOKEN ``` See [Authorization](/api-reference/management-api/authorization) for ready-to-copy snippets in bash, Python, Node.js and Go that turn your `credentials.json` into a token.

Query parameters

pstn_blacklist_phonestringRequired
The phone number in format e164 or regex pattern

Response

Successful response
resultinteger
Returns 1 if the request has been completed successfully
pstn_blacklist_idinteger
The PSTN black list item ID