put https://{domainname}/CAServicesV3/blockNumberGroupV2.php
Deprecation Update
This API will be deprecated by 30th Nov 2024.
We recommend to start using the new version of the APIs:
Using this API, You can add multiple phone numbers to a Block Number group.
For authentication, provide your username ( Cloud Agent username ) and password ( API key associated with your account ) in the Authorization section.
Body parameters
Provide the following parameters in the BODY PARAMS section.
Parameter | Description |
---|---|
name | Name for the block number group |
description | Enter the description for the group |
Id | Block Number Group ID |
blockNumbers | Phone numbers to be added to the group |
expiryDate | Add the expiry date for the number, this indicates the duration you want the number to remain in the blocked list. Format: YYYY-MM-DD HH:MM:SS |
Rate Limit
This API supports the addition of up to 100 phone numbers in a single request.
Possible responses
Passing Invalid 'username' in Authorization | {"status": "error","message": "Authentication failed"} |
Passing Invalid 'password' in Authorization | {"status": "error","message": "Authentication failed"} |
Passing invalid Id key parameter. | { "status": "error","message": "Parameters are mandatory"} |
Passing invalid Id value parameter. | { "status": "error","message": "Invalid group id"} |
Passing invalid blockNumbers key parameter. | { "status": "error","message": "Parameters are mandatory"} |
Passing invalid blockNumbers value parameter. | {"status": "error","message": "invalid data","errors": {"blockNumbers": "Blocknumbers data contains invalid format of numbers"}} |
Successfully updating multiple numbers in a group | "{""status"": ""success"",""message"": ""updated"",""input"": {""id"": XX, ""blockNumbers"": [""97XXX04XX3"", ""97XXX0XX94"",""97XXX0XX95""]}, ""output"": {""succes"": [ ""+9197XXX04XX3"",""+9197XXX0XX94"", ""+9197XXX0XX95""], ""error"": [],""new"": 3,""inserted"": 3}}" |
Further Insights
By default, the domain name is https://in1-ccaas-api.ozonetel.com. Please refer here to change based on the need.