curl --request POST \
--url https://api.bedrock.cv/projects/{project_id}/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "fire-rated doors",
"limit": 20,
"source_types": [
"block",
"feature"
],
"image_url": "gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png"
}
'{
"results": [
{
"id": "<string>",
"content": "<string>",
"context": {},
"score": 123,
"source_type": "block",
"source_id": "<string>"
}
]
}Hybrid semantic and visual search across a project drawing set.
curl --request POST \
--url https://api.bedrock.cv/projects/{project_id}/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "fire-rated doors",
"limit": 20,
"source_types": [
"block",
"feature"
],
"image_url": "gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png"
}
'{
"results": [
{
"id": "<string>",
"content": "<string>",
"context": {},
"score": 123,
"source_type": "block",
"source_id": "<string>"
}
]
}{
"query": "elevator shaft with two hydraulic lifts",
"limit": 20
}
| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Natural language search query |
limit | integer | No | Maximum results to return (default: 20) |
source_types | string[] | No | Filter by source type (block, feature, file) |
image_url | string | No | Storage URI (gs:// or s3://) for visual similarity search |
image_url is provided, search combines text-based results with visual similarity matching. The image must be a storage URI referencing a file within the target project.
{
"query": "fire alarm pull station",
"image_url": "gs://bucket/projects/prj_xxx/files/reference.png"
}
{
"results": [
{
"id": "block:blk_01JABCD100",
"content": "First floor electrical plan showing panel schedule...",
"context": "Sheet A-101, Block: Plan View",
"score": 0.89,
"source_type": "block",
"source_id": "blk_01JABCD100"
}
]
}
| Field | Description |
|---|---|
id | Composite identifier ({source_type}:{source_id}) |
content | Matched content text |
context | Human-readable location context |
score | Relevance score (higher is better) |
source_type | Type of content matched (block, feature, or file) |
source_id | ID of the matched entity |
API key prefixed with sk_. Example: Authorization: Bearer sk_xxx
API version
Project ID
Search results.
Show child attributes