Zum Hauptinhalt springen
GET
/
v3
/
enterprise
/
sessions
Sitzungen für ein Konto auflisten
curl --request GET \
  --url https://api.devin.ai/v3/enterprise/sessions \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "acus_consumed": 123,
      "created_at": 123,
      "org_id": "<string>",
      "pull_requests": [
        {
          "pr_state": "<string>",
          "pr_url": "<string>"
        }
      ],
      "session_id": "<string>",
      "status": "new",
      "tags": [
        "<string>"
      ],
      "updated_at": 123,
      "url": "<string>",
      "category": "bug_fixing",
      "child_session_ids": [
        "<string>"
      ],
      "is_archived": false,
      "origin": "webapp",
      "parent_session_id": "<string>",
      "playbook_id": "<string>",
      "service_user_id": "<string>",
      "status_detail": "working",
      "structured_output": {},
      "subcategory": "<string>",
      "title": "<string>",
      "user_id": "<string>"
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.devin.ai/llms.txt

Use this file to discover all available pages before exploring further.

Berechtigungen

Erfordert einen Servicebenutzer mit der Berechtigung ViewAccountSessions auf Enterprise-Ebene.

Autorisierungen

Authorization
string
header
erforderlich

Servicebenutzer-Anmeldedaten (Präfix: cog_)

Abfrageparameter

after
string | null
first
integer
Standard:100
Erforderlicher Bereich: 1 <= x <= 200
session_ids
string[] | null
created_after
integer | null
created_before
integer | null
updated_after
integer | null
updated_before
integer | null
tags
string[] | null
playbook_id
string | null
origins
enum<string>[] | null
Verfügbare Optionen:
webapp,
slack,
teams,
api,
linear,
jira,
scheduled,
automation,
cli,
desktop,
other
schedule_id
string | null
user_ids
string[] | null
service_user_ids
string[] | null
repo_names
string[] | null

Nach Repo-Namen filtern (z. B. 'owner/repo1', 'owner/repo2')

category
enum<string> | null
Verfügbare Optionen:
bug_fixing,
ci_cd_and_devops,
code_quality_and_security,
code_review_and_analysis,
data_and_automation,
documentation_and_content,
feature_development,
migrations_and_upgrades,
other,
refactoring_and_optimization,
research_and_exploration,
unit_test_generation
org_ids
string[] | null
include_deleted_orgs
boolean
Standard:false

Antwort

Erfolgreiche Antwort

items
SessionResponse · object[]
erforderlich
end_cursor
string | null

Cursor zum Abrufen der nächsten Seite oder None, falls dies die letzte Seite ist.

has_next_page
boolean
Standard:false

Gibt an, ob nach dieser Seite weitere Einträge verfügbar sind.

total
integer | null

Optionale Gesamtanzahl (kann aus Performancegründen ausgelassen werden).