For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Search

POST /search is the main way to find and list assets in a drive. It combines Shade's AI search with filters on file properties and metadata.

  • query is a natural-language search. Leave it out to list everything that matches the filters.

  • filters narrows results by path, type, dates, size, collection, or any metadata attribute. Every filter has an id, a clause, and options.

  • sort takes a field such as created or -updated (descending). When sort is set, query is ignored.

  • Page through results with limit and page.

See Searching and filtering assets for every filter and clause.

Simple search for file names folders, collections, individuals, and views

post

Unified simple search endpoint that searches across assets, folders, collections, individuals, and views.

This endpoint provides a lightweight search that:

  • Searches assets by name

  • Searches folders by directory name

  • Searches collections by name

  • Searches individuals (face groups) by name

  • Searches dynamic views by name

  • Returns a unified list ranked by match quality (exact > prefix > contains > similarity)

Unlike the main search endpoint, this does not perform AI-powered search or semantic search. It's designed for fast, simple name-based lookups across all searchable entities in the drive.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
querystringRequired

The query to search for across all entity types.

drive_idstring · uuid · nullableOptional

The id of a single drive to search in. Use drive_ids for multi-drive search.

drive_idsstring · uuid[] · nullableOptional

List of drive IDs to search across. Takes precedence over drive_id if both provided.

limitintegerOptional

The maximum total number of results to return across all entity types. Defaults to 50.

Default: 50
offsetintegerOptional

The offset for pagination. Defaults to 0.

Default: 0
created_afterstring · date-time · nullableOptional

Only include results created at or after this timestamp.

created_beforestring · date-time · nullableOptional

Only include results created at or before this timestamp.

Responses
200

Unified search results ranked by relevance

application/json
or
or
or
or
or
post/search/simple
POST /search/simple HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 253

{
  "query": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "drive_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "limit": 50,
  "offset": 0,
  "entity_types": [
    "asset"
  ],
  "created_after": "2026-01-01T00:00:00.000Z",
  "created_before": "2026-01-01T00:00:00.000Z"
}
[
  {
    "entity_type": "asset",
    "entity_id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "path": "text",
    "asset": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "path": "text",
      "name": "text",
      "extension": "text",
      "type": "IMAGE",
      "size_bytes": 1,
      "created": "2026-01-01T00:00:00.000Z",
      "updated": "2026-01-01T00:00:00.000Z",
      "stack_id": "123e4567-e89b-12d3-a456-426614174000",
      "stack_number": 1,
      "is_fs_draft_blob": true,
      "is_fs_null_blob": true,
      "system_metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "custom_metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "preview_images": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "frame": 1,
          "signed_url": "text"
        }
      ],
      "custom_thumbnail": "text",
      "proxy": {
        "id": "123e4567-e89b-12d3-a456-426614174000"
      }
    }
  }
]

Track a search result selection for personalized ranking

post

Track when a user selects a search result to improve future search rankings.

This endpoint records which search results users click on, allowing the system to boost frequently selected results to the top of future searches for the same query.

Requires authentication.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
querystringRequired

The search query that was performed

entity_typestring · enumRequired

Type of entity selected

Possible values:
entity_idstring · uuid · nullableOptional

ID of the selected entity (null for folders)

pathstring · nullableOptional

Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.

drive_idstring · uuidRequired

Drive where the search occurred

Responses
200

Successful Response

application/json
nullOptional
post/search/simple/ranking
POST /search/simple/ranking HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 153

{
  "query": "text",
  "entity_type": "asset",
  "entity_id": "123e4567-e89b-12d3-a456-426614174000",
  "path": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000"
}

No content

Reset personalized search rankings

post

Reset personalized search ranking data for a user.

If a query is provided, only rankings for that specific query are reset. Otherwise, all search rankings for the user in the specified drive are reset.

Requires authentication.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
drive_idstring · uuidRequired

Drive to reset rankings for

querystring · nullableOptional

Optional specific query to reset. If not provided, resets all queries.

Responses
200

Successful Response

application/json
nullOptional
post/search/simple/ranking/reset
POST /search/simple/ranking/reset HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 66

{
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "query": "text"
}

No content

Get recent unique search queries for the current user

get

Get the most recent unique search queries for the current user.

Returns queries ordered by the most recent selection time across any result for that query. Useful for showing search history or suggested searches.

Requires authentication.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
drive_idstring · uuidRequired

The id of the drive to get recent queries for

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
limitintegerOptional

Maximum number of recent queries to return. Defaults to 10.

Default: 10
Responses
200

Recent unique queries, most recently selected first

application/json
querystringRequired
last_selected_atstring · date-timeRequired
get/search/simple/queries/recent
GET /search/simple/queries/recent?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "query": "text",
    "last_selected_at": "2026-01-01T00:00:00.000Z"
  }
]

Generate Ai Filters

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
promptstring · max: 1000Required
drive_idstring · uuidRequired
Responses
200

Successful Response

application/json
post/search/ai-filters
POST /search/ai-filters HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "prompt": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "filters": [
    {
      "id": null,
      "options": [
        {
          "client_val": "text",
          "server_val": "text",
          "icon": "text"
        }
      ],
      "clause": "is",
      "ignore_options": true
    }
  ]
}

Search for assets. Note: This request is idempotent

post

Search for assets in the database. This is the primary search function on assets.

If collection_id is provided, the search is restricted to that collection. Otherwise, the search is performed on the entire drive.

This route should not be called for searching on a public path - use /search/files instead.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
querystring · nullableOptional

A natural-language query, matched with Shade's AI search. Leave it out to return everything that matches filters. Ignored when sort is set.

similar_asset_idstring · uuid · nullableOptional

The id of the asset to find similar assets to.

sortstring · nullableOptional

Field to sort by, such as name, created, updated, size_bytes, or a metadata attribute ID. Prefix with - for descending order, for example -created. Results are sorted by name when there's no query or sort.

offsetinteger · nullableOptional

The offset of results to return. Input either this or 'page'. Defaults to 0 if neither are inputted.

pageinteger · nullableOptional

Zero-based page number. Use page or offset, not both.

limitinteger · nullableOptional

The maximum number of assets to return. Defaults to 100.

Default: 100
drive_idstring · uuidRequired

The id of the drive we want to search on.

return_only_attrsstring[] · nullableOptional

The attributes that you want to return. If not provided, all attributes will be returned. This is limited, and not all attributes that exist on AssetDTO will work.

Default: []
collection_idstring · uuid · nullableOptional

The id of the collection to search within.

attribute_idsstring · uuid[] · nullableOptional

When provided, asset DTOs only carry custom-metadata values for these attribute ids. Filters and sorts still resolve against the full drive schema. Omit to return all custom metadata (legacy).

Responses
200

A list of matching assets

application/json
or
post/search
POST /search HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
  "query": "drone shot of a coastline at sunset",
  "limit": 25
}
[
  {
    "id": "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f",
    "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
    "path": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C003.mov",
    "name": "A001_C003.mov",
    "extension": "mov",
    "updated": "2026-09-14T17:32:08Z",
    "created": "2026-09-14T17:30:51Z",
    "type": "VIDEO",
    "size_bytes": 4831838208,
    "stack_id": null,
    "stack_number": null,
    "is_fs_draft_blob": false,
    "is_fs_null_blob": false,
    "rating": 4,
    "ai_indexed": true,
    "system_metadata": {
      "Width": 3840,
      "Height": 2160,
      "Duration": 312.48,
      "Frame Rate": 23.976,
      "Codec": "ProRes 422 HQ"
    },
    "custom_metadata": {
      "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f": [
        "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
        "e5f6a7b8-c9d0-4e1f-9a2b-3c4d5e6f7a8b"
      ],
      "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c": "Northwind Outdoor"
    },
    "category": "Interview",
    "palette": [
      [
        42,
        38,
        35
      ],
      [
        196,
        162,
        120
      ],
      [
        88,
        104,
        117
      ]
    ],
    "ocr": null,
    "transcription_id": "3e4f5a6b-7c8d-4e9f-a0b1-c2d3e4f5a6b7",
    "faces_present": true,
    "comment_count": 2,
    "preview_job_state": "COMPLETED",
    "metadata_job_state": "COMPLETED",
    "custom_metadata_job_state": "COMPLETED",
    "core_vision_job_state": "COMPLETED",
    "color_palette_job_state": "COMPLETED",
    "core_audio_job_state": "COMPLETED",
    "facial_recognition_job_state": "COMPLETED",
    "proxy_job_state": "COMPLETED",
    "audio_proxy_job_state": "NOT_STARTED",
    "transcription_job_state": "COMPLETED",
    "scrub_sheet_job_state": "COMPLETED",
    "preview_images": [
      {
        "id": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a5b",
        "frame": 0,
        "signed_url": "https://storage.example.com/previews/f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a5b.webp?signature=..."
      }
    ],
    "custom_thumbnail": null
  }
]

Chunk enabled version of search above

post

Search for subclips using columnar search engine. Returns assets with their associated chunks.

If collection_id is provided, the search is restricted to that collection. Otherwise, the search is performed on the entire drive.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
querystringRequired

The query to search for subclips.

drive_idstring · uuidRequired

The id of the drive we want to search on.

database_signalsstring[]Optional

The database column signals to search through.

Default: []
merge_chunksbooleanOptional

Whether to merge overlapping/adjacent chunks within the same asset. Disable to see individual chunk segments.

Default: true
expansion_thresholdnumber · max: 1Optional

Controls how far to expand from score peaks when merging (0.0-1.0). Converted to drop_ratio = 1 - threshold. 0.7 = include chunks >= 30% of peak score (default), 0.5 = include chunks >= 50% of peak (tighter segments), 0.9 = include chunks >= 10% of peak (larger segments).

Default: 0.7
hot_chunk_thresholdnumber · max: 1Optional

Filter chunks to only those scoring >= this ratio of the best chunk's score (0.0-1.0). 0.0 = no filtering (show all), 0.5 = only chunks >= 50% of best, 0.7 = only chunks >= 70% of best. Use to show only the most relevant 'hot' chunks.

Default: 0.7
video_score_thresholdnumber · nullableOptional

Minimum score threshold for video/audio chunks. Chunks below this score are filtered out. Suggested: 0.03

document_score_thresholdnumber · nullableOptional

Minimum score threshold for document/transcription chunks. Chunks below this score are filtered out. Suggested: 0.35

image_score_thresholdnumber · nullableOptional

Minimum score threshold for image chunks. Chunks below this score are filtered out. Suggested: 0.02

relevance_sensitivitynumber · max: 1Optional

Dynamic cutoff sensitivity for filtering irrelevant assets (0.0-1.0). Uses gap detection to find natural score boundaries between relevant and irrelevant results. 0.0 = no filtering (show all), 0.5 = moderate (cut at 50%+ score drops), 1.0 = aggressive (cut at 20%+ drops).

Default: 0
max_vector_distancenumber · max: 1Optional

Maximum cosine distance threshold for vector search (0.0-1.0). Chunks with distance >= this threshold are filtered out early, improving query performance. Lower values = stricter filtering (faster but may miss results). 0.8 is recommended for most use cases.

Default: 0.8
collection_idstring · uuid · nullableOptional

The id of the collection to search within.

Responses
200

A list of matching assets with chunks

application/json

Response wrapper for chunked search including debug info.

post/search/chunked
POST /search/chunked HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 534

{
  "query": "text",
  "filters": [
    {
      "id": null,
      "options": [
        "text"
      ],
      "clause": "is"
    }
  ],
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "database_signals": [
    "text"
  ],
  "signal_weights": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "search_modes": {
    "ANY_ADDITIONAL_PROPERTY": {
      "ANY_ADDITIONAL_PROPERTY": true
    }
  },
  "merge_chunks": true,
  "expansion_threshold": 0.7,
  "hot_chunk_threshold": 0.7,
  "video_score_threshold": 1,
  "document_score_threshold": 1,
  "image_score_threshold": 1,
  "relevance_sensitivity": 0,
  "max_vector_distance": 0.8,
  "collection_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
  "results": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "drive_id": "123e4567-e89b-12d3-a456-426614174000",
      "path": "text",
      "name": "text",
      "extension": "text",
      "updated": "2026-01-01T00:00:00.000Z",
      "created": "2026-01-01T00:00:00.000Z",
      "type": "IMAGE",
      "size_bytes": 1,
      "stack_id": "123e4567-e89b-12d3-a456-426614174000",
      "stack_number": 1,
      "is_fs_draft_blob": true,
      "is_fs_null_blob": true,
      "rating": 1,
      "ai_indexed": true,
      "system_metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "custom_metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "category": "text",
      "palette": [
        [
          1
        ]
      ],
      "ocr": "text",
      "transcription_id": "123e4567-e89b-12d3-a456-426614174000",
      "faces_present": true,
      "content_length": 1,
      "comment_count": 1,
      "preview_job_state": "NOT_STARTED",
      "metadata_job_state": "NOT_STARTED",
      "custom_metadata_job_state": "NOT_STARTED",
      "core_vision_job_state": "NOT_STARTED",
      "color_palette_job_state": "NOT_STARTED",
      "core_audio_job_state": "NOT_STARTED",
      "audio_job_state": "NOT_STARTED",
      "facial_recognition_job_state": "NOT_STARTED",
      "proxy_job_state": "NOT_STARTED",
      "audio_proxy_job_state": "NOT_STARTED",
      "transcription_job_state": "NOT_STARTED",
      "scrub_sheet_job_state": "NOT_STARTED",
      "objects": [],
      "texture_data": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "integration_data": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "preview_images": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "frame": 1,
          "signed_url": "text"
        }
      ],
      "custom_thumbnail": "text",
      "proxy": {
        "id": "123e4567-e89b-12d3-a456-426614174000"
      },
      "audio_proxy": {
        "id": "123e4567-e89b-12d3-a456-426614174000"
      },
      "scrub_sheet": {
        "preview_width": 1,
        "preview_height": 1,
        "columns": 1,
        "rows": 1,
        "interval": 1,
        "total_frames": 1,
        "scrub_sheets": [
          "text"
        ]
      },
      "grid_scrub_sheet": {
        "preview_width": 1,
        "preview_height": 1,
        "columns": 1,
        "rows": 1,
        "interval": 1,
        "total_frames": 1,
        "scrub_sheets": [
          "text"
        ]
      },
      "relevant_chunks": []
    }
  ],
  "debug": {
    "sql_query": "text",
    "pg_planning_ms": 1,
    "pg_execution_ms": 1
  }
}

Get the folders in a folder

get

Get all content in a folder (non-indexed and indexed)

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Query parameters
pathstring · pathRequired

Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.

querystring · nullableOptional

The query to search for. If not provided, all folder contents will be returned.

offsetinteger · nullableOptional

The offset of results to return. Input either this or 'page'.

pageinteger · nullableOptional

The page to query. Input either this or 'offset'.

limitinteger · nullableOptional

The limit that is fetched per page

drive_idstring · uuidRequired

The id of the drive we want to add user to

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

Successful Response

application/json
string · path[]Optional
get/search/folders
GET /search/folders?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  "text"
]

Get the folders in a folder (POST)

post

Get all content in a folder (POST variant for sandboxed environments where query params cannot contain path separators).

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
pathstring · pathRequired

Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.

querystring · nullableOptional
offsetinteger · nullableOptional
pageinteger · nullableOptional
limitinteger · nullableOptional
drive_idstring · uuidRequired
Responses
200

Successful Response

application/json
string · path[]Optional
post/search/folders
POST /search/folders HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110

{
  "path": "text",
  "query": "text",
  "offset": 1,
  "page": 1,
  "limit": 1,
  "drive_id": "123e4567-e89b-12d3-a456-426614174000"
}
[
  "text"
]

Get the files in a folder

post

Get all files in a folder. This performs a "search" with a filter on the path, and auths on public paths.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
pathstring · pathRequired

Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.

recursiveboolean · nullableOptional

Whether or not to do a recursive search on the directory

Default: false
querystring · nullableOptional

The query to search for. If not provided, all folder contents will be returned.

offsetinteger · nullableOptional

The offset of results to return. Input either this or 'page'. Defaults to 0 if neither are inputted.

pageinteger · nullableOptional

The page to query. Input either this or 'offset'. Defaults to 0 if neither are inputted.

limitinteger · nullableOptional

The limit that is fetched per page. Defaults to 100

Default: 100
sortstring · nullableOptional

A field name, optionally prefixed by the - sign to specify a descending order.

drive_idstring · uuidRequired

The id of the drive we want to add user to

return_only_attrsstring[] · nullableOptional

The attributes that you want to return. If not provided, all attributes will be returned. This is limited, and not all attributes that exist on AssetDTO will work.

Default: []
collection_idstring · uuid · nullableOptional

The id of the collection (used for custom sort when browsing folders within a collection).

attribute_idsstring · uuid[] · nullableOptional

When provided, asset DTOs only carry custom-metadata values for these attribute ids. Filters and sorts still resolve against the full drive schema. Omit to return all custom metadata (legacy).

Responses
200

Successful Response

application/json
or
post/search/files
POST /search/files HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 342

{
  "path": "text",
  "recursive": false,
  "query": "text",
  "offset": 1,
  "page": 1,
  "limit": 100,
  "filters": [
    {
      "id": null,
      "options": [
        "text"
      ],
      "clause": "is"
    }
  ],
  "sort": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "return_only_attrs": [
    "text"
  ],
  "collection_id": "123e4567-e89b-12d3-a456-426614174000",
  "attribute_ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "path": "text",
    "name": "text",
    "extension": "text",
    "updated": "2026-01-01T00:00:00.000Z",
    "created": "2026-01-01T00:00:00.000Z",
    "type": "IMAGE",
    "size_bytes": 1,
    "stack_id": "123e4567-e89b-12d3-a456-426614174000",
    "stack_number": 1,
    "is_fs_draft_blob": true,
    "is_fs_null_blob": true,
    "rating": 1,
    "ai_indexed": true,
    "system_metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "custom_metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "category": "text",
    "palette": [
      [
        1
      ]
    ],
    "ocr": "text",
    "transcription_id": "123e4567-e89b-12d3-a456-426614174000",
    "faces_present": true,
    "content_length": 1,
    "comment_count": 1,
    "preview_job_state": "NOT_STARTED",
    "metadata_job_state": "NOT_STARTED",
    "custom_metadata_job_state": "NOT_STARTED",
    "core_vision_job_state": "NOT_STARTED",
    "color_palette_job_state": "NOT_STARTED",
    "core_audio_job_state": "NOT_STARTED",
    "audio_job_state": "NOT_STARTED",
    "facial_recognition_job_state": "NOT_STARTED",
    "proxy_job_state": "NOT_STARTED",
    "audio_proxy_job_state": "NOT_STARTED",
    "transcription_job_state": "NOT_STARTED",
    "scrub_sheet_job_state": "NOT_STARTED",
    "objects": [],
    "texture_data": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "integration_data": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "preview_images": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "frame": 1,
        "signed_url": "text"
      }
    ],
    "custom_thumbnail": "text",
    "proxy": {
      "id": "123e4567-e89b-12d3-a456-426614174000"
    },
    "audio_proxy": {
      "id": "123e4567-e89b-12d3-a456-426614174000"
    },
    "scrub_sheet": {
      "preview_width": 1,
      "preview_height": 1,
      "columns": 1,
      "rows": 1,
      "interval": 1,
      "total_frames": 1,
      "scrub_sheets": [
        "text"
      ]
    },
    "grid_scrub_sheet": {
      "preview_width": 1,
      "preview_height": 1,
      "columns": 1,
      "rows": 1,
      "interval": 1,
      "total_frames": 1,
      "scrub_sheets": [
        "text"
      ]
    }
  }
]

Export search results

post

Export search results to a file. The file is returned as a downloadable response.

If collection_id is provided, the search is restricted to that collection. If path is provided, the search is restricted to that path (includes public path). Otherwise, the search is performed on the entire drive.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
export_formatstring · enumRequired

The format that you want to export the search results in.

Possible values:
Query parameters
timezonestring · nullableOptional
Body
querystring · nullableOptional

The query to search for.

sortstring · nullableOptional

A field name, optionally prefixed by the - sign to specify a descending order.

offsetinteger · nullableOptional

The offset of results to return. Input either this or 'page'. Defaults to 0 if neither are inputted.

pageinteger · nullableOptional

The page to query. Input either this or 'offset'. Defaults to 0 if neither are inputted.

limitinteger · nullableOptional

The limit that is fetched per page. Defaults to 100

Default: 100
drive_idstring · uuidRequired

The id of the drive we want to search on.

collection_idstring · uuid · nullableOptional

The id of the collection to search within.

pathstring · path · nullableOptional

Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.

recursiveboolean · nullableOptional

Whether or not to do a recursive search on the directory

Default: false
metadata_attribute_idsstring[]Required

List of attribute IDs that should be returned (these are the columns in the export)

osstring · enum · nullableOptional

The operating system that the exported file will be used on.

Possible values:
Responses
200

A downloadable file

application/octet-stream
stringOptional
post/search/exports/{export_format}
POST /search/exports/{export_format} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 305

{
  "query": "text",
  "filters": [
    {
      "id": null,
      "options": [
        "text"
      ],
      "clause": "is"
    }
  ],
  "sort": "text",
  "offset": 1,
  "page": 1,
  "limit": 100,
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "collection_id": "123e4567-e89b-12d3-a456-426614174000",
  "path": "text",
  "recursive": false,
  "metadata_attribute_ids": [
    "text"
  ],
  "os": "Windows"
}
text

Sign download URLs for assets picked by id or by search

post

One row per asset, in input or search order, with a signed URL or an error.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body

Pick assets by id or by search, never both.

drive_idstring · uuidRequired
origin_typestring · enumRequired

Which copy of an asset's data to fetch.

Possible values:
downloadbooleanOptionalDefault: true
asset_idsstring · uuid[] · max: 1000 · nullableOptional
Responses
200

Successful Response

application/json

One row of POST /search/download-urls: enough to queue a client download.

idstring · uuidRequired
pathstringRequired
typestring · enumRequiredPossible values:
size_bytesintegerRequired
urlstring · nullableRequired
errorstring · nullableRequired
post/search/download-urls
POST /search/download-urls HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 127

{
  "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
  "origin_type": "SOURCE",
  "asset_ids": [
    "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f"
  ]
}
[
  {
    "id": "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f",
    "path": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C003.mov",
    "type": "VIDEO",
    "size_bytes": 4831838208,
    "url": "https://storage.example.com/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall%20Campaign/Interviews/A001_C003.mov?X-Amz-Signature=...",
    "error": null
  }
]

Last updated

Was this helpful?