---
title: "Obter por ID"
method: GET
path: "/v1/scheduled-message/{id}"
tags: ["Mensagens Agendadas"]
---

# Obter por ID

`GET /v1/scheduled-message/{id}`

Retorna os detalhes de uma mensagem agendada específica.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `includeDetails` string[]

## Response `200`

Success

- PublicScheduledMessageDTO
  - `id` string, uuid — Identificador único da mensagem agendada
  - `createdAt` string, date-time — Data e hora de criação da mensagem agendada
  - `updatedAt` string, date-time — Data e hora da última atualização da mensagem agendada
  - `active` boolean — Indica se a mensagem agendada está ativa
  - `companyId` string, uuid — Identificador da empresa associada à mensagem agendada
  - `sessionId` string, uuid, nullable — Identificador da sessão
  - `contactId` string, uuid — Identificador do contato que receberá a mensagem
  - `userId` string, uuid — Identificador do usuário que criou a mensagem agendada
  - `channelId` string, uuid — Identificador do canal onde a mensagem será enviada
  - `departmentId` string, uuid, nullable — ID da equipe
  - `status` 'SCHEDULED' | 'PROCESSED' | 'SENT' | 'DELIVERED' | 'READ' | 'CANCELED' | 'FAILED' — Status atual da mensagem agendada
  - `type` 'TEMPLATE' | 'CHATBOT' — Tipo da mensagem agendada
  - `templateId` string, uuid, nullable — Identificador do template utilizado
  - `botId` string, uuid, nullable — Chave do chatbot associado
  - `scheduling` string, date-time — Data e hora programada para envio da mensagem
  - `hiddenSession` boolean — Indica se a sessão deve ficar oculta
  - `failureReason` string, nullable — Indica o motivo de falha caso ocorra
  - `contact` PublicScheduledMessageContactDTO
    - `id` string, uuid — Identificador único do contato
    - `name` string, nullable — Nome do contato
    - `phonenumberFormatted` string, nullable — Número de telefone formatado do contato
    - `instagram` string, nullable — Usuário do Instagram do contato
    - `pictureUrl` string, nullable — URL da foto de perfil do contato
  - `user` PublicScheduledMessageUserDTO
    - `id` string, uuid — Identificador único do usuário
    - `name` string, nullable — Nome do usuário
  - `channel` PublicScheduledMessageChannelDTO
    - `id` string, uuid — Identificador único do canal
    - `humanId` string, nullable — Identificador humano do canal
    - `type` 'GupShup_WhatsApp' | 'Dialog360_WhatsApp' | 'CloudAPI_WhatsApp' | 'ZAPI_WhatsApp' | 'EvolutionApi_WhatsApp' | 'Instagram' | 'Messenger' — Tipo do canal (WhatsApp, Instagram, etc.)
  - `department` PublicScheduledMessageDepartmentDTO
    - `id` string, uuid — Identificador único do departamento
    - `name` string, nullable — Nome do departamento
  - `chatbot` PublicScheduledMessageChatBotDTO
    - `id` string, uuid — Chave única do chatbot
    - `botId` string, uuid — Id do chatbot
    - `name` string, nullable — Nome do chatbot
  - `template` PublicScheduledMessageTemplateDTO
    - `id` string, uuid — Identificador único do template
    - `name` string, nullable — Nome do template
    - `templateParams` PublicResponseScheduledMessageTemplateParamsDTO
      - `parameters` object, nullable — Parâmetros do modelo de mensagem. Obrigatório caso o modelo de mensagem informado no `templateId` possua parâmetros.
      - `file` PublicFileDTO
        - `id` string, uuid
        - `companyId` string, uuid, nullable
        - `userId` string, uuid, nullable
        - `name` string, nullable
        - `extension` string, nullable
        - `mimeType` string, nullable
        - `type` 'UNDEFINED' | 'PDF' | 'EXCEL' | 'WORD' | 'IMAGE' | 'AUDIO' | 'VIDEO'
        - `publicUrl` string, nullable
        - `publicUrlDownload` string, nullable
        - `size` integer
        - `isThumbnail` boolean
        - `thumbnail` PublicFileThumbnailDTO
          - `id` string, uuid
          - `publicUrl` string, nullable

## Other responses

- `500` — Server Error

---

[API](https://skmtc.net/helena/apis/core.md) · [All operations](https://skmtc.net/helena/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helena/core/versions/811b2cdd2ec2/schema)
