curl --request POST \
--url https://analytics-api.voiceflow.com/v2/query/usage \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"data": {
"name": "interactions",
"filter": {
"projectID": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"projectEnvironmentIDOrAlias": "<string>",
"limit": 100,
"cursor": 123
}
}
}
'{
"result": {
"items": [
{
"period": "2023-11-07T05:31:56Z",
"projectID": "<string>",
"environmentID": "<string>",
"count": 123,
"type": "<string>"
}
],
"cursor": 123
}
}Query usage for a project
curl --request POST \
--url https://analytics-api.voiceflow.com/v2/query/usage \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"data": {
"name": "interactions",
"filter": {
"projectID": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"projectEnvironmentIDOrAlias": "<string>",
"limit": 100,
"cursor": 123
}
}
}
'{
"result": {
"items": [
{
"period": "2023-11-07T05:31:56Z",
"projectID": "<string>",
"environmentID": "<string>",
"count": 123,
"type": "<string>"
}
],
"cursor": 123
}
}Documentation Index
Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Voiceflow API key
Aggregate the number of interactions that match the provided filter.
Hide child attributes
interactions A base filter supported by all queries that return a list
Hide child attributes
1A timestamp in ISO-8601 format
A timestamp in ISO-8601 format
One or more Voiceflow project environment IDs or aliases
11 < x < 500The query succeed and the result was returned
Was this page helpful?