---
title: "Recupera as sessões ativas do bot Dify"
method: GET
path: "/dify/fetchSessions/:difyId/{instance}"
tags: ["Dify Controller"]
---

# Recupera as sessões ativas do bot Dify

`GET /dify/fetchSessions/:difyId/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/dify/fetchSessions/:difyId/{instance}`
- Auth: API key in header `apikey`

Recupera as sessões ativas de um bot Dify específico, com base no ID do bot (`difyId`) e na instância do bot (`instance`).

## Path parameters

- `difyId` string, required
- `instance` string, required

## Response `200`

Sessões recuperadas com sucesso.

- object
  - `sessions` string

## Changes

- **2024-11-25** (v2) `56920b565a24`: 1 breaking
  - the `sessions` response's property type changed from `array` to `string` for status `200`
- **2024-11-25** (v2) `8648dce9423a`: 1 info
  - endpoint added
- **2024-11-25** (v2) `c153448703e5`: 1 breaking
  - api path removed without deprecation
- **2024-09-09** (v2) `0c4620ca5ed5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/dify/fetchSessions/:difyId/:instance/get.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
