---
title: "GET /v2/agent/{agentId}/idle-actions"
method: GET
path: "/v2/agent/{agentId}/idle-actions"
---

# GET /v2/agent/{agentId}/idle-actions

`GET /v2/agent/{agentId}/idle-actions`

Listar as ações de inatividade

## Path parameters

- `agentId` string, required

## Response `200`

Lista as configurações de ações de inatividade

- object
  - `actions` object[] — Lista de ações configuradas para inatividade
    - `id` string — Identificador da ação
    - `type` 'SEND_MESSAGE' | 'FINISH_INTERACTION' — Tipo da ação de inatividade
    - `instructions` string, nullable — Mensagem ou instruções da ação
    - `workingHours` object, nullable — Horários de funcionamento permitidos para execução da ação
      - `id` string
      - `tenant` string
      - `tenantOwner` string
      - `createdAt` integer — Timestamp de criação
      - `updatedAt` integer, nullable — Timestamp de atualização
      - `active` boolean
      - `days` object[]
        - `id` string
        - `tenant` string
        - `tenantOwner` string
        - `createdAt` integer
        - `updatedAt` integer, nullable
        - `active` boolean
        - `dayWeek` integer — Dia da semana (0=Domingo, 1=Segunda, ...)
        - `hours` object[]
          - `id` string
          - `tenant` string
          - `tenantOwner` string
          - `createdAt` integer
          - `updatedAt` integer, nullable
          - `start` string
          - `end` string
          - `sequence` integer — Ordem do intervalo
    - `allowAllHours` boolean — Indica se a ação pode ser executada em qualquer horário
    - `seconds` integer — Tempo de inatividade (em segundos) para disparar a ação
  - `finishOn` object — Configuração de tempo para finalizar interação
    - `seconds` integer — Tempo total em segundos para finalizar

## Other responses

- `400` — Erro inesperado
- `403` — Erro de token

---

[API](https://skmtc.net/gptmaker/apis/openapi-gpt-maker.md) · [All operations](https://skmtc.net/gptmaker/apis/openapi-gpt-maker/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gptmaker/openapi-gpt-maker/versions/bda09b3eba6e/schema)
