SafetyCulture · Schema

SearchFoldersRequest

The parameters for `SearchFoldersRequest`

CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia

Properties

Name Type Description
query string Optional. The search value to query folders with when provided. When not provided, either all of the organisations folders or users folders will be returned in a paginated way
order_by object The order in which folders are sorted.
filters array Optional. Filters to apply when getting folders. Used for only returning folders that match the filter setting. i.e. only returning meta_label 'location'. Maximum of 1000 filters allowed.
only_assigned_folders boolean When true, SearchFolders will only return folders that are assigned to the user making the request. Defaults to false
only_leaf_nodes boolean When true, SearchFolders will only search location folders. Defaults to false.
include_members_count boolean Whether to return the directly associated members count with the folders. Defaults to false.
include_folders_count boolean Whether to return the total number of folders discovered in the query. Defaults to false
include_deleted_folders boolean Whether to return both deleted and non-deleted folders. Defaults to false
limit integer The number of results to be returned. maximum 1500, default 500
page_token string The offset used for pagination. The starting number for the next query
ignore_folders_disabled boolean Optional. When true, folders will still be returned when disabled for the organisation
domain string domain represents the type/domain/hierarchy for the folder. This is used for getting folders of a certain domain, i.e. getting all `template` folders or `site` folders
View JSON Schema on GitHub

JSON Schema

safetyculture-s12-directory-v1-search-folders-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-directory-v1-search-folders-request-schema.json",
  "title": "SearchFoldersRequest",
  "description": "The parameters for `SearchFoldersRequest`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-directory-sites-api-openapi.yml#/components/schemas/s12.directory.v1.SearchFoldersRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Optional. The search value to query folders with when provided. When not\nprovided, either all of the organisations folders or users folders will be\nreturned in a paginated way"
    },
    "order_by": {
      "description": "The order in which folders are sorted.",
      "allOf": [
        {
          "$ref": "#/$defs/s12.directory.v1.FoldersOrderBy"
        }
      ]
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.directory.v1.FoldersFilter"
      },
      "description": "Optional. Filters to apply when getting folders. Used for only returning\nfolders that match the filter setting. i.e. only returning meta_label\n'location'. Maximum of 1000 filters allowed."
    },
    "only_assigned_folders": {
      "type": "boolean",
      "description": "When true, SearchFolders will only return folders that are assigned to\nthe user making the request. Defaults to false"
    },
    "only_leaf_nodes": {
      "type": "boolean",
      "description": "When true, SearchFolders will only search location folders. Defaults to false."
    },
    "include_members_count": {
      "type": "boolean",
      "description": "Whether to return the directly associated members\ncount with the folders. Defaults to false."
    },
    "include_folders_count": {
      "type": "boolean",
      "description": "Whether to return the total number of folders discovered\nin the query. Defaults to false"
    },
    "include_deleted_folders": {
      "type": "boolean",
      "description": "Whether to return both deleted and non-deleted folders. Defaults to false"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "The number of results to be returned. maximum 1500, default 500"
    },
    "page_token": {
      "type": "string",
      "description": "The offset used for pagination. The starting number for the next query"
    },
    "ignore_folders_disabled": {
      "type": "boolean",
      "description": "Optional. When true, folders will still be returned when disabled for the\norganisation"
    },
    "domain": {
      "type": "string",
      "description": "domain represents the type/domain/hierarchy for the folder. This is used\nfor getting folders of a certain domain, i.e. getting all `template`\nfolders or `site` folders"
    }
  },
  "$defs": {
    "s12.directory.v1.FoldersFilter": {
      "type": "object",
      "properties": {
        "not": {
          "type": "boolean",
          "description": "If true, exclude results that match the condition"
        },
        "meta_label": {
          "type": "string",
          "description": "Filter on the status"
        },
        "folder_id": {
          "type": "string",
          "description": "Filter on a specific folder id"
        },
        "is_dynamic": {
          "type": "boolean",
          "description": "Filter on whether a folder is dynamic or not"
        }
      },
      "description": "FoldersFilter represents a filter when getting folders",
      "title": "FoldersFilter"
    },
    "s12.directory.v1.FoldersOrderBy": {
      "type": "object",
      "properties": {
        "sort_field": {
          "allOf": [
            {
              "$ref": "#/$defs/s12.directory.v1.FoldersOrderBy.SortField"
            }
          ],
          "description": "The field to order by"
        },
        "sort_order": {
          "allOf": [
            {
              "$ref": "#/$defs/s12.directory.v1.FoldersOrderBy.SortOrder"
            }
          ],
          "description": "The direction to order by"
        }
      },
      "description": "FoldersOrderBy represents the sort order folders will be returned in",
      "title": "FoldersOrderBy"
    },
    "s12.directory.v1.FoldersOrderBy.SortField": {
      "type": "string",
      "enum": [
        "SORT_FIELD_UNSPECIFIED",
        "SORT_FIELD_NAME",
        "SORT_FIELD_FOLDER_ID",
        "SORT_FIELD_USER_ID",
        "SORT_FIELD_CREATED_AT",
        "SORT_FIELD_MODIFIED_AT"
      ],
      "default": "SORT_FIELD_UNSPECIFIED",
      "title": "- SORT_FIELD_UNSPECIFIED: The sort field is unspecified\n - SORT_FIELD_NAME: Sort the folder by name\n - SORT_FIELD_FOLDER_ID: Sort the folders by folder id\n - SORT_FIELD_USER_ID: Sort the folders by user id\n - SORT_FIELD_CREATED_AT: Sort the folders by created at\n - SORT_FIELD_MODIFIED_AT: Sort the folders by modified at"
    },
    "s12.directory.v1.FoldersOrderBy.SortOrder": {
      "type": "string",
      "enum": [
        "SORT_ORDER_UNSPECIFIED",
        "SORT_ORDER_ASCENDING",
        "SORT_ORDER_DESCENDING"
      ],
      "default": "SORT_ORDER_UNSPECIFIED",
      "title": "- SORT_ORDER_UNSPECIFIED: The sort order is not specified\n - SORT_ORDER_ASCENDING: The sort order is asc\n - SORT_ORDER_DESCENDING: The sort order is desc"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/safetyculture-s12-directory-v1-search-folders-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.