# List Genie conversations

> The Genie conversations of a workspace in one region, newest activity first, in cursor pages.

Source: https://docs.stacksync.com/api-reference/genies/conversations/list_genie_conversations

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations`

- Operation: `list_genie_conversations`
- Resource: Genie conversations
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |
| `genie_id` | string (uuid) \| null | No | Only the conversations of this genie |
| `limit` | integer, 1 to 100, default 50 | No | Maximum number of conversations returned, at most 100 |
| `cursor` | string \| null, at most 64 characters | No | next_cursor of the previous page |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieConversationSummary) | Yes |  |
| `data[].conversation_id` | string | Yes |  |
| `data[].genie_id` | string \| null | No |  |
| `data[].genie_name` | string \| null | No |  |
| `data[].name` | string \| null | No |  |
| `data[].status` | string \| null | No |  |
| `data[].status_label` | string \| null | No |  |
| `data[].last_activity_time` | string \| null | No |  |
| `data[].message_count` | integer, default 0 | No |  |
| `data[].step_count` | integer, default 0 | No |  |
| `has_more` | boolean | Yes |  |
| `next_cursor` | string \| null | No | Pass it as cursor for the next page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "conversation_id": "<conversation_id>",
      "genie_id": "<genie_id>",
      "genie_name": "<genie_name>",
      "name": "<name>",
      "status": "<status>",
      "status_label": "<status_label>",
      "last_activity_time": "<last_activity_time>",
      "message_count": 0,
      "step_count": 0
    }
  ],
  "has_more": false,
  "next_cursor": "<next_cursor>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a Genie conversation](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_conversation)
- [Get a Genie tool execution](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_tool_execution)
- [Get a Genie browser session](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_browser_session)