Endpoints
Get stats from API executions.
Roles: ENDPOINT_READ, ENDPOINT_WRITE, ENDPOINT_ADMIN
User access: Yes.
Service account access: Yes.
POST
/
api
/
v1
/
endpoints
/
{endpointId}
/
stats
Get stats from API executions.
curl --request POST \
--url https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: '2023-11-07T05:31:56Z', to: '2023-11-07T05:31:56Z'})
};
fetch('https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats"
payload = {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
OK.
Last modified on September 5, 2026
⌘I
Get stats from API executions.
curl --request POST \
--url https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: '2023-11-07T05:31:56Z', to: '2023-11-07T05:31:56Z'})
};
fetch('https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/endpoints/{endpointId}/stats"
payload = {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
