List projects
curl --request GET \
--url https://api.bedrock.cv/projects \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bedrock.cv/projects"
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/projects', 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",
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/projects"
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/projects")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/projects")
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": "prj_01JABCD123",
"name": "City Tower Phase 2",
"description": "30-story mixed-use development",
"created_at": "2024-06-15T10:30:00Z"
}
],
"_meta": {
"next": "eyJpZCI6ImN1cnNvcl8xMjM0NTYiLCJjcmVhdGVkX2F0IjoiMjAyNC0wNi0xNVQxMDozMDowMFoifQ==",
"prev": null,
"limit": 1
}
}{
"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"
}Projects
List projects
Retrieve projects in your organization.
GET
/
projects
List projects
curl --request GET \
--url https://api.bedrock.cv/projects \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bedrock.cv/projects"
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/projects', 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",
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/projects"
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/projects")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.cv/projects")
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": "prj_01JABCD123",
"name": "City Tower Phase 2",
"description": "30-story mixed-use development",
"created_at": "2024-06-15T10:30:00Z"
}
],
"_meta": {
"next": "eyJpZCI6ImN1cnNvcl8xMjM0NTYiLCJjcmVhdGVkX2F0IjoiMjAyNC0wNi0xNVQxMDozMDowMFoifQ==",
"prev": null,
"limit": 1
}
}{
"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 a list of projects in your organization.
Authorizations
BearerAuthApiKeyAuth
API key prefixed with sk_. Example: Authorization: Bearer sk_xxx
Headers
API version
Query Parameters
Pagination cursor
Number of items per page
Required range:
1 <= x <= 100⌘I