Passer au contenu principal
GET
/
v3beta1
/
enterprise
/
sessions
Répertorier les sessions du compte
curl --request GET \
  --url https://api.devin.ai/v3beta1/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>",
      "child_session_ids": [
        "<string>"
      ],
      "is_advanced": false,
      "is_archived": false,
      "parent_session_id": "<string>",
      "structured_output": {},
      "title": "<string>",
      "user_id": "<string>"
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

Autorisations

Nécessite un utilisateur de service disposant de l’autorisation ViewAccountSessions au niveau Enterprise.

Autorisations

Authorization
string
header
requis

Identifiant de compte de service (préfixe : cog_)

Paramètres de requête

after
string | null
first
integer
défaut:100
Plage requise: 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
Options disponibles:
webapp,
slack,
teams,
api,
linear,
jira,
scheduled,
other
schedule_id
string | null
org_ids
string[] | null

Réponse

Réponse en cas de succès

items
SessionResponse · object[]
requis
end_cursor
string | null

Curseur permettant de récupérer la page suivante, ou None s’il s’agit de la dernière page.

has_next_page
boolean
défaut:false

Indique si d’autres éléments sont disponibles après cette page.

total
integer | null

Nombre total facultatif (peut être omis pour améliorer les performances).