Get feature
curl --request GET \
--url https://api.bedrock.cv/features/{feature_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bedrock.cv/features/{feature_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bedrock.cv/features/{feature_id}', 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/features/{feature_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.cv/features/{feature_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bedrock.cv/features/{feature_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/features/{feature_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ftr_01JABCD123",
"block_id": "blk_01JABCD100",
"parent_feature_id": null,
"type": "door",
"label": "104",
"bounds": {
"type": "bbox",
"xmin": 450,
"ymin": 320,
"xmax": 480,
"ymax": 350
},
"confidence": 0.94,
"uri": "https://storage.bedrock.cv/features/ftr_01JABCD123.png",
"ocr": null,
"description": "Door 104, single leaf, opening into Room 201",
"metadata": {
"fire_rating": "45-min",
"material": "HM"
},
"created_at": "2024-06-16T14:15:00Z",
"updated_at": "2024-06-16T14:15:00Z"
}
}{
"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"
}Features
Get feature
Retrieve details for a specific feature.
GET
/
features
/
{feature_id}
Get feature
curl --request GET \
--url https://api.bedrock.cv/features/{feature_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bedrock.cv/features/{feature_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bedrock.cv/features/{feature_id}', 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/features/{feature_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.cv/features/{feature_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bedrock.cv/features/{feature_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/features/{feature_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ftr_01JABCD123",
"block_id": "blk_01JABCD100",
"parent_feature_id": null,
"type": "door",
"label": "104",
"bounds": {
"type": "bbox",
"xmin": 450,
"ymin": 320,
"xmax": 480,
"ymax": 350
},
"confidence": 0.94,
"uri": "https://storage.bedrock.cv/features/ftr_01JABCD123.png",
"ocr": null,
"description": "Door 104, single leaf, opening into Room 201",
"metadata": {
"fire_rating": "45-min",
"material": "HM"
},
"created_at": "2024-06-16T14:15:00Z",
"updated_at": "2024-06-16T14:15:00Z"
}
}{
"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"
}Returns the full details for a feature, including bounds geometry, confidence, and metadata.
Authorizations
BearerAuthApiKeyAuth
API key prefixed with sk_. Example: Authorization: Bearer sk_xxx
Headers
API version
Path Parameters
Feature ID
Response
Success
Show child attributes
Show child attributes
Example:
{ "id": "ftr_01JABCD123", "block_id": "blk_01JABCD100", "parent_feature_id": null, "type": "door", "label": "104", "bounds": { "type": "bbox", "xmin": 450, "ymin": 320, "xmax": 480, "ymax": 350 }, "confidence": 0.94, "uri": "https://storage.bedrock.cv/features/ftr_01JABCD123.png", "ocr": null, "description": "Door 104, single leaf, opening into Room 201", "metadata": { "fire_rating": "45-min", "material": "HM" }, "created_at": "2024-06-16T14:15:00Z", "updated_at": "2024-06-16T14:15:00Z" }
⌘I