Skip to main content
POST
Search a project

Authorizations

Authorization
string
header
required

Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

Body

application/json

API request schema for end-user project search.

project_id
string<uuid>
required

ID of the project to search within

spec
Spec · object
required

What to search for and how to filter. Needs at least one signal or filter.

limit
integer
default:50

Maximum number of assets to return.

Required range: 1 <= x <= 100
offset
integer
default:0

Number of matching assets to skip. Only the first 1000 matching assets are returned; a page past them is empty.

Required range: x >= 0

Response

Successful Response

Top-level response for project search.

assets
SearchAssetResponse · object[]
required

Matching assets, best match first; a search with only filters sorts them by name.

has_more
boolean
required

Whether more matching assets follow this page; a page can be short even when they do. To get them, send the same request with offset increased by limit.