# List the resources in a folder

> What the folder holds, sub-folders included. `limit` and `offset` apply to each resource type.

Source: https://docs.stacksync.com/api-reference/folders/list_folder_resources

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}/resources`

- Operation: `list_folder_resources`
- Resource: Folders
- 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. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `resource_types` | array of string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) \| null | No | Only these resource types; all types when absent |
| `search` | string \| null, 1 to 255 characters | No | Only resources whose name or id contains this text, searched in sub-folders too |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (FolderResource) | Yes |  |
| `data[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `data[].resource_id` | string | Yes |  |
| `data[].resource_name` | string | Yes |  |
| `data[].status` | string \| null | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].apps` | array of string | Yes | The apps the resource connects, as the web app shows them; empty when none |
| `data[].parent_folder_id` | string \| null | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |
| `total_count` | integer | Yes | How many resources of the requested types the folder holds (the matches of a search), across every page |

## Example request

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

## Example response (200)

```json
{
  "data": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "resource_name": "<resource_name>",
      "status": "<status>",
      "region": "besg",
      "apps": [
        "<apps>"
      ],
      "parent_folder_id": "<parent_folder_id>",
      "last_modified_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0,
  "total_count": 0
}
```

## 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
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)