Get account limits
Returns the usage limits of the account and how much of each one is consumed. Outside WiseApp Cloud the limits come from the entitlements of the plan.
GET
/
enterprise
/
api
/
v1
/
accounts
/
{account_id}
/
limits
Get account limits
curl --request GET \
--url https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits")
.header("api_access_token", "<api-key>")
.asString();{
"id": 17,
"limits": {
"conversation": {},
"non_web_inboxes": {},
"agents": {
"allowed": 10,
"consumed": 7
},
"captain": {
"documents": {
"allowed": 50,
"consumed": 12
},
"responses": {
"allowed": 5000,
"consumed": 1843
}
}
}
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}Autorizações
⌘I
Get account limits
curl --request GET \
--url https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.wiseapp360.com/enterprise/api/v1/accounts/{account_id}/limits")
.header("api_access_token", "<api-key>")
.asString();{
"id": 17,
"limits": {
"conversation": {},
"non_web_inboxes": {},
"agents": {
"allowed": 10,
"consumed": 7
},
"captain": {
"documents": {
"allowed": 50,
"consumed": 12
},
"responses": {
"allowed": 5000,
"consumed": 1843
}
}
}
}{
"error": "Unauthorized"
}{
"error": "Resource not found"
}