Pular para o conteúdo principal
GET
/
v2
/
enterprise
/
sessions
List Sessions
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/sessions \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "items": [
    {
      "acus_consumed": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "org_id": "<string>",
      "pull_requests": [
        {
          "url": "<string>",
          "state": "<string>"
        }
      ],
      "session_id": "<string>",
      "status": "new",
      "tags": [
        "<string>"
      ],
      "updated_at": "2023-11-07T05:31:56Z",
      "url": "<string>",
      "title": "<string>",
      "user_id": "<string>"
    }
  ],
  "limit": 123,
  "skip": 123,
  "total": 123,
  "next_cursor": 123
}
Requer uma chave de API pessoal de administrador Enterprise. Retorna uma lista paginada de todas as sessões do Devin na sua conta Enterprise, incluindo informações básicas da sessão, dados de PR (pull request) e consumo de ACU.

Autorizações

Authorization
string
header
obrigatório

Personal API Key (apk_user_*) for Enterprise Admins only

Parâmetros de consulta

skip
integer
padrão:0
Intervalo obrigatório: x >= 0
limit
integer
padrão:100
Intervalo obrigatório: 1 <= x <= 200
created_date_from
string<date-time> | null
created_date_to
string<date-time> | null
updated_date_from
string<date-time> | null
updated_date_to
string<date-time> | null
org_ids
string[] | null
user_ids
string[] | null
session_ids
string[] | null

Resposta

Successful Response

has_more
boolean
obrigatório
items
SessionResponse · object[]
obrigatório
limit
integer
obrigatório
skip
integer
obrigatório
total
integer
obrigatório
next_cursor
integer | null