Passer au contenu principal
GET
/
v3
/
organizations
/
{org_id}
/
sessions
Lister les sessions
curl --request GET \
  --url https://api.devin.ai/v3/organizations/{org_id}/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.

Permissions

Nécessite un utilisateur de service doté de l’autorisation ViewOrgSessions au niveau de l’organisation.

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

org_id
string | null
requis

ID de l’organisation (préfixe : org-)

Exemple:

"org-abc123def456"

Paramètres de requête

qs
SessionsQueryParams · object
requis
devin_id
string | null

Réponse

Réponse réussie

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).