Skip to main content
POST
/
api
/
v1
/
endpoints
/
{endpointId}
/
stats
Get stats from API executions.
curl --request POST \
  --url https://api.revong.com/api/v1/endpoints/{endpointId}/stats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "path": true,
  "url": true,
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z",
  "granularity": "YEAR"
}'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Path Parameters

endpointId
string
required

Body

application/json
from
string<date-time>
required

Aggregation period from.

to
string<date-time>
required

Aggregation period to.

granularity
enum<string>
required

Aggregation period type.

Available options:
YEAR,
QUARTER,
MONTH,
WEEK,
DAY,
HOUR,
MINUTE,
SECOND
path
boolean

Show API path (exclude dynamic routing).

url
boolean

Show end URL (include dynamic routing).

Response

OK.