OnCaller
  • OnCaller Developer Document
  • API
    • Authentication
    • Blacklist Number Management
    • Business Hour Management
    • Caller Setting
    • Call Actions
    • Call Logs
  • SDK
    • Javascript SDK
      • OnCallerCall
      • OnCallerCallState
      • OnCallerClient
      • OnCaller Error Code
      • Example
    • OnCaller Call Widget
    • Android SDK
    • iOS SDK
    • React Native SDK
    • Cordova/IONIC SDK
Powered by GitBook
On this page
  • List Number In Blacklist
  • Add new Number to Blacklist
  • Update number in Blacklist
  • Delete Number in Blacklist

Was this helpful?

  1. API

Blacklist Number Management

APIs for managing Number in Blacklist. This API only work with user who has permission to manage blacklist number.

List Number In Blacklist

GET https://{yoursubdomain}.oncaller.asia/api/v1/blacklist-number

This endpoint allows you to get blacklist numbers

Query Parameters

Name
Type
Description

page

number

Page

limit

number

Number of limit item per page. M

Headers

Name
Type
Description

Authentication

string

Bearer + {token}

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Add new Number to Blacklist

POST https://{yoursubdomain}.oncaller.asia/api/v1/blacklist-number

Add new number to Blacklist

Headers

Name
Type
Description

Authentication

string

Bearer + {Token}

Request Body

Name
Type
Description

number

string

Number to add to blacklist, start with 0 or '+'. Ex: 0904893123, +84904893123

ivr_blocked

boolean

Block go to IVR or not

queue_blocked

boolean

Block go to Queue or not

{
    "success": true,
    "code": 200,
    "locale": "en",
    "message": "OK",
    "data": {
        "number": "+84904893123",
        "ivr_blocked": true,
        "queue_blocked": true,
        "updated_at": "2020-10-07T03:25:00.000000Z",
        "created_at": "2020-10-07T03:25:00.000000Z",
        "id": 39
    }
}

Update number in Blacklist

PUT https://{yoursubdomain}.oncaller.asia/api/v1/blacklist-number/{number}

Headers

Name
Type
Description

Authentication

string

Bearer + {token}

Request Body

Name
Type
Description

number

string

Number must be start with 0 or '+'

ivr_blocked

boolean

Block go to IVR or not

queue_blocked

boolean

Block go to Queue or not

{
    "success": true,
    "code": 200,
    "locale": "en",
    "message": "OK",
    "data": {
        "number": "+844338311232",
        "ivr_blocked": true,
        "queue_blocked": true,
        "updated_at": "2020-10-07T03:25:00.000000Z",
        "created_at": "2020-10-07T03:25:00.000000Z",
        "id": 39
    }
}

Delete Number in Blacklist

DELETE https://{yoursubdomain}.oncaller.asia/api/v1/blacklist-number/{number}

Remove number in blacklist

Headers

Name
Type
Description

Authentication

string

Bearer + {token}

{
    "success": true,
    "code": 200,
    "locale": "en",
    "message": "OK",
    "data": {}
}
PreviousAuthenticationNextBusiness Hour Management

Last updated 4 years ago

Was this helpful?