GET
/
v2
/
enterprise
/
metrics
/
sessions
curl -X GET "https://api.devin.ai/v2/enterprise/metrics/sessions" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "sessions_count": 127
}
Returns the total number of sessions for your enterprise within the specified time period.

Query Parameters

start_date
string
Start date for the metrics period. Defaults to the beginning of the current billing cycle.
end_date
string
End date for the metrics period. Defaults to the current date.
org_ids
array
Array of organization IDs to filter metrics. If not provided, returns metrics for all organizations.
user_ids
array
Array of user IDs to filter metrics. If not provided, returns metrics for all users.

Response

sessions_count
integer
required
Total number of Devin sessions created in the specified period
curl -X GET "https://api.devin.ai/v2/enterprise/metrics/sessions" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "sessions_count": 127
}