Pular para o conteúdo principal
GET
/
v3beta1
/
organizations
/
{org_id}
/
schedules
Listar agendamentos
curl --request GET \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/schedules \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "agent": "devin",
      "consecutive_failures": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "created_by": "<string>",
      "enabled": true,
      "frequency": "<string>",
      "last_error_at": "2023-11-07T05:31:56Z",
      "last_error_message": "<string>",
      "last_executed_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "notify_on": "always",
      "org_id": "<string>",
      "playbook": {
        "playbook_id": "<string>",
        "title": "<string>"
      },
      "prompt": "<string>",
      "scheduled_session_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

Permissões

Exige um usuário de serviço com a permissão ManageOrgSchedules no nível da organização.

Autorizações

Authorization
string
header
obrigatório

Credencial de usuário de serviço (prefixo: cog_)

Parâmetros de consulta

limit
integer
padrão:50
Intervalo obrigatório: 1 <= x <= 100
offset
integer
padrão:0
Intervalo obrigatório: x >= 0

Resposta

Resposta bem-sucedida

items
ScheduleResponse · object[]
obrigatório
end_cursor
string | null

Cursor para buscar a próxima página ou None se esta for a última página.

has_next_page
boolean
padrão:false

Indica se há mais itens disponíveis após esta página.

total
integer | null

Contagem total opcional de itens (pode ser omitida para melhor desempenho).