get https://api.pre-prod.ozonetel.com/ca_apis/getBlockNumber
This API is used to get the 'Block Number Groups' list from your Cloud Agent account.
To use this API with the help of a token, follow these steps:
- Generate the Token: Use the 'Generate Token' API to obtain an authentication token.
- Enter the Token ID: Navigate to the right section of this page, under the 'AUTHORIZATION' tab. Here, input the generated token ID.
- With the token entered, pass the below header and body parameters:
Header parameters
Parameter | Description |
---|---|
Content-Type | application/json |
Body Params
{
"userName":"xxxxx"}
Possible Responses
Missing 'username' in Authorization | {"status": "error","message": "Authentication failed"} |
Passing Invalid 'username' in Authorization | {"status": "error","message": "Authentication failed"} |
Missing 'password; in Authorization | {"status": "error","message": "Authentication failed"} |
Passing Invalid 'password; in Authorization | {"status": "error","message": "Authentication failed"} |
Passing the valid 'username' and 'password' in Authorization | {"status": "success","message": "19 records found","data": [{ "GroupID": "XXX", "GroupName": "XXXXXXX", "UserId": "XXXX", "Description": "XXXXXXXX"} |