---
title: "Fetch sessions of the OpenAI bot instance"
method: GET
path: "/openai/fetchSessions/:openaiBotId/{instance}"
tags: ["OpenAI Controller"]
---

# Fetch sessions of the OpenAI bot instance

`GET /openai/fetchSessions/:openaiBotId/{instance}`

Fetches the sessions of the specified OpenAI bot instance.

## Path parameters

- `openaiBotId` string, required
- `instance` string, required

## Response `200`

Successfully fetched sessions

- object
  - `message` string

## Other responses

- `400` — Bad Request - Invalid parameters
- `404` — Not Found - No sessions found for the given bot and instance
- `500` — Internal Server Error

---

[API](https://skmtc.net/evolution-foundation/apis/evolution-api-2.md) · [All operations](https://skmtc.net/evolution-foundation/apis/evolution-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/evolution-foundation/evolution-api-2/revisions/153363ee7f38/schema)
