Returns a paginated list of all Devin sessions for a specific organization within your enterprise, including basic session information, pull request data, and ACU consumption.
Path Parameters
The unique identifier of the organization
Query Parameters
Number of items to skip for pagination (minimum: 0)
Maximum number of items to return (minimum: 1, maximum: 1000)
Filter sessions created after this date (ISO 8601 format)
Filter sessions created before this date (ISO 8601 format)
Filter sessions updated after this date (ISO 8601 format)
Filter sessions updated before this date (ISO 8601 format)
Filter sessions by user IDs (array of strings)
Filter sessions by specific Devin session IDs (array of strings)
Filter sessions by tags (array of strings)
Sort order for results by creation date. Options: “asc” or “desc”
Response
Array of session objects Unique identifier for the Devin session
URL to view the session in the Devin interface
Current status of the Devin session (new, claimed, running, exit, error, suspended, resuming)
List of tags associated with the session
ID of the user who created the session
ID of the organization the session belongs to
Timestamp when the session was created
Timestamp when the session was last updated
Number of ACUs (Agent Compute Units) consumed by the session
List of pull requests created during the session State of the pull request (e.g., open, closed, merged)
Alternative state field for the pull request
Total number of sessions available for the organization
Maximum number of items per page
Whether more items are available
Cursor for the next page (if applicable)
curl -X GET "https://api.devin.ai/v2/enterprise/organizations/org_789/sessions?limit=10&skip=0" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items" : [
{
"session_id" : "xyz789" ,
"url" : "https://app.devin.ai/sessions/xyz789" ,
"status" : "running" ,
"title" : "Implement new feature" ,
"tags" : [ "feature" , "enhancement" ],
"user_id" : "user_123" ,
"org_id" : "org_789" ,
"created_at" : "2024-01-20T14:00:00Z" ,
"updated_at" : "2024-01-20T15:30:00Z" ,
"acus_consumed" : 12.3 ,
"pull_requests" : []
},
{
"session_id" : "def456" ,
"url" : "https://app.devin.ai/sessions/def456" ,
"status" : "exit" ,
"title" : "Refactor database layer" ,
"tags" : [ "refactor" ],
"user_id" : "user_456" ,
"org_id" : "org_789" ,
"created_at" : "2024-01-19T09:00:00Z" ,
"updated_at" : "2024-01-19T11:00:00Z" ,
"acus_consumed" : 18.7 ,
"pull_requests" : [
{
"pr_url" : "https://github.com/example/repo/pull/456" ,
"pr_state" : "open" ,
"state" : "open"
}
]
}
],
"total" : 45 ,
"skip" : 0 ,
"limit" : 10 ,
"has_more" : true ,
"next_cursor" : 10
}