---
title: "Search resources across a workspace"
method: GET
path: "/workspaces/{workspace_id}/resources"
tags: ["Resources v2"]
---

# Search resources across a workspace

`GET /workspaces/{workspace_id}/resources`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/resources`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Search resources across every project the user can access in the workspace. Used by the global search bar for cross-project results.

## Path parameters

- `workspace_id` integer, required

## Query parameters

- `type` string, nullable
- `search` string, nullable
- `cursor` string, nullable
- `limit` integer
- `sort` string, nullable
- `fields` string

## Response `200`

Request fulfilled, document follows

- PaginatedResourcesResponse
  - `resources` ResourceItemResponse[], required
    - `id` integer, required
    - `resource_type` string, required
    - `object_id` integer, required
    - `resource_id` integer, nullable
    - `name` string, nullable
    - `project_id` integer, nullable
    - `parent_resource_id` integer, nullable
    - `source_type` string, nullable
    - `row_count` integer, nullable
    - `column_count` integer, nullable
    - `created_at` string, nullable
    - `last_updated_at` string, nullable
    - `status` string, nullable
    - `data_size` integer, nullable
    - `etag` string, nullable
    - `integration_key` string, nullable
    - `additional_data` object, nullable
    - `additional_info` object, nullable
    - `config_keys` object, nullable
    - `display_info` object, nullable
    - `dependencies` object, nullable
    - `views_ids` object[], nullable
    - `dataset` object, nullable
    - `target_resource_ids` integer[], nullable
    - `files_count` integer, nullable
    - `folders_count` integer, nullable
    - `object_properties` object, nullable
    - `has_linked_ops` boolean, nullable
    - `linked_dashboards` object[], nullable
  - `next_cursor` string, nullable
  - `has_more` boolean, required

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
