curl --request POST \
--url https://api.bedrock.cv/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "prj_01JABCD123",
"filename": "site-photo.jpg",
"content_type": "image/jpeg"
}
'{
"data": {
"id": "projects%2Fprj_01JABCD123%2Ffiles%2Fsite-photo.jpg",
"upload_url": "https://storage.googleapis.com/bedrock-files/projects/prj_01JABCD123/files/site-photo.jpg?X-Goog-Signature=...",
"key": "projects/prj_01JABCD123/files/site-photo.jpg",
"filename": "site-photo.jpg",
"content_type": "image/jpeg"
}
}Create a file record and get a signed upload URL.
curl --request POST \
--url https://api.bedrock.cv/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "prj_01JABCD123",
"filename": "site-photo.jpg",
"content_type": "image/jpeg"
}
'{
"data": {
"id": "projects%2Fprj_01JABCD123%2Ffiles%2Fsite-photo.jpg",
"upload_url": "https://storage.googleapis.com/bedrock-files/projects/prj_01JABCD123/files/site-photo.jpg?X-Goog-Signature=...",
"key": "projects/prj_01JABCD123/files/site-photo.jpg",
"filename": "site-photo.jpg",
"content_type": "image/jpeg"
}
}POST /files with the filename and content typeupload_url using a PUT requestawaiting_upload to processing automatically# Step 1: Create the file record
curl -X POST https://api.bedrock.cv/files \
-H "Authorization: Bearer sk_xxx" \
-H "Content-Type: application/json" \
-d '{"project_id": "prj_01JABCD123", "filename": "specs.pdf", "content_type": "application/pdf"}'
# Step 2: Upload to the signed URL
curl -X PUT "https://storage.bedrock.cv/uploads/fil_01JABCD123?signature=..." \
-H "Content-Type: application/pdf" \
--data-binary @specs.pdf
API key prefixed with sk_. Example: Authorization: Bearer sk_xxx
API version
Success
Show child attributes
{
"id": "projects%2Fprj_01JABCD123%2Ffiles%2Fsite-photo.jpg",
"upload_url": "https://storage.googleapis.com/bedrock-files/projects/prj_01JABCD123/files/site-photo.jpg?X-Goog-Signature=...",
"key": "projects/prj_01JABCD123/files/site-photo.jpg",
"filename": "site-photo.jpg",
"content_type": "image/jpeg"
}