Search project content
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"
}
'import requests
url = "https://api.bedrock.cv/projects/{project_id}/search"
payload = {
"query": "fire-rated doors",
"limit": 20,
"source_types": ["block", "feature"],
"image_url": "gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'fire-rated doors',
limit: 20,
source_types: ['block', 'feature'],
image_url: 'gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png'
})
};
fetch('https://api.bedrock.cv/projects/{project_id}/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.cv/projects/{project_id}/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'fire-rated doors',
'limit' => 20,
'source_types' => [
'block',
'feature'
],
'image_url' => 'gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.cv/projects/{project_id}/search"
payload := strings.NewReader("{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bedrock.cv/projects/{project_id}/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/projects/{project_id}/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"content": "<string>",
"context": {},
"score": 123,
"source_type": "block",
"source_id": "<string>"
}
]
}{
"type": "https://docs.bedrock.cv/errors/bad-request",
"title": "Bad Request",
"status": 400,
"detail": "One or more request fields are invalid.",
"code": "VALIDATION_ERROR",
"request_id": "req_01JABCD123",
"errors": {
"project_id": [
"Required field"
]
}
}{
"type": "https://docs.bedrock.cv/errors/authentication",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing API key.",
"code": "UNAUTHORIZED",
"request_id": "req_01JABCD123"
}{
"type": "https://docs.bedrock.cv/errors/rate-limit",
"title": "Rate limited",
"status": 429,
"detail": "Rate limit exceeded. Try again in 60 seconds.",
"code": "RATE_LIMITED",
"request_id": "req_01JABCD123"
}Vision API
Search
Hybrid semantic and visual search across a project drawing set.
POST
/
projects
/
{project_id}
/
search
Search project content
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"
}
'import requests
url = "https://api.bedrock.cv/projects/{project_id}/search"
payload = {
"query": "fire-rated doors",
"limit": 20,
"source_types": ["block", "feature"],
"image_url": "gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'fire-rated doors',
limit: 20,
source_types: ['block', 'feature'],
image_url: 'gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png'
})
};
fetch('https://api.bedrock.cv/projects/{project_id}/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.cv/projects/{project_id}/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'fire-rated doors',
'limit' => 20,
'source_types' => [
'block',
'feature'
],
'image_url' => 'gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.cv/projects/{project_id}/search"
payload := strings.NewReader("{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bedrock.cv/projects/{project_id}/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/projects/{project_id}/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"fire-rated doors\",\n \"limit\": 20,\n \"source_types\": [\n \"block\",\n \"feature\"\n ],\n \"image_url\": \"gs://bedrock-files/projects/prj_01JABCD123/files/reference-door.png\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"content": "<string>",
"context": {},
"score": 123,
"source_type": "block",
"source_id": "<string>"
}
]
}{
"type": "https://docs.bedrock.cv/errors/bad-request",
"title": "Bad Request",
"status": 400,
"detail": "One or more request fields are invalid.",
"code": "VALIDATION_ERROR",
"request_id": "req_01JABCD123",
"errors": {
"project_id": [
"Required field"
]
}
}{
"type": "https://docs.bedrock.cv/errors/authentication",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing API key.",
"code": "UNAUTHORIZED",
"request_id": "req_01JABCD123"
}{
"type": "https://docs.bedrock.cv/errors/rate-limit",
"title": "Rate limited",
"status": 429,
"detail": "Rate limit exceeded. Try again in 60 seconds.",
"code": "RATE_LIMITED",
"request_id": "req_01JABCD123"
}Search answers “where does this appear?” by running hybrid semantic + keyword search across all indexed content in a project. Optionally combine with visual similarity search using a reference image.
Search is synchronous and returns results immediately (not an async job).
Text and visual results are merged and ranked by combined relevance score.
Request
{
"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 |
Visual Search
Whenimage_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"
}
Response
{
"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 |
Authorizations
BearerAuthApiKeyAuth
API key prefixed with sk_. Example: Authorization: Bearer sk_xxx
Headers
API version
Path Parameters
Project ID
Body
application/json
Response
Search results.
Show child attributes
Show child attributes
⌘I