Generate DIAL code
POST {{baseUrl}}/dialcode/v1/generate
The user want to generate some list of DIAL codes for a specific reason. This API will help to get the specific number(count property in the request) of DIAL codes required for him.
count: No of DIAL codes required to generate.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
new_dialcodes_to_generate | number |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Channel-ID | string | ||
Content-Type | string |
RESPONSES
status: OK
{"id":"api.dialcode.generate","ver":"1.0","ts":"2022-03-17T08:59:43.629Z","params":{"resmsgid":"965fe3d0-a5d0-11ec-88f3-b3fb6ff88b18","msgid":"9646dd90-a5d0-11ec-a6f2-dddf22685ab9","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"dialcodes":["E2Z2B8"],"count":1,"batchcode":null,"publisher":null}}