Create a build
curl --request POST \
--url https://api.pipecat.daily.co/v1/builds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uploadId": "550e8400-e29b-41d4-a716-446655440000",
"region": "us-west",
"dockerfilePath": "Dockerfile"
}
'import requests
url = "https://api.pipecat.daily.co/v1/builds"
payload = {
"uploadId": "550e8400-e29b-41d4-a716-446655440000",
"region": "us-west",
"dockerfilePath": "Dockerfile"
}
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({
uploadId: '550e8400-e29b-41d4-a716-446655440000',
region: 'us-west',
dockerfilePath: 'Dockerfile'
})
};
fetch('https://api.pipecat.daily.co/v1/builds', 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.pipecat.daily.co/v1/builds",
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([
'uploadId' => '550e8400-e29b-41d4-a716-446655440000',
'region' => 'us-west',
'dockerfilePath' => 'Dockerfile'
]),
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.pipecat.daily.co/v1/builds"
payload := strings.NewReader("{\n \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\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.pipecat.daily.co/v1/builds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipecat.daily.co/v1/builds")
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 \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\n}"
response = http.request(request)
puts response.read_body{
"build": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "org_abc123",
"status": "building",
"region": "us-west",
"contextHash": "a1b2c3d4e5f6a7b8",
"dockerfilePath": "Dockerfile",
"imageUri": "123456789.dkr.ecr.us-west-2.amazonaws.com/pipecat-cloud/org_abc123:a1b2c3d4e5f6a7b8",
"logsUrl": "https://console.aws.amazon.com/codebuild/...",
"errorMessage": "Docker build failed: COPY failed - file not found",
"contextSizeBytes": 10485760,
"imageSizeBytes": 524288000,
"buildDurationSeconds": 120,
"startedAt": "2026-02-20T12:00:00.000Z",
"completedAt": "2026-02-20T12:02:00.000Z",
"createdAt": "2026-02-20T12:00:00.000Z",
"updatedAt": "2026-02-20T12:02:00.000Z"
},
"contextHash": "a1b2c3d4e5f6a7b8",
"cached": false
}{
"build": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "org_abc123",
"status": "building",
"region": "us-west",
"contextHash": "a1b2c3d4e5f6a7b8",
"dockerfilePath": "Dockerfile",
"imageUri": "123456789.dkr.ecr.us-west-2.amazonaws.com/pipecat-cloud/org_abc123:a1b2c3d4e5f6a7b8",
"logsUrl": "https://console.aws.amazon.com/codebuild/...",
"errorMessage": "Docker build failed: COPY failed - file not found",
"contextSizeBytes": 10485760,
"imageSizeBytes": 524288000,
"buildDurationSeconds": 120,
"startedAt": "2026-02-20T12:00:00.000Z",
"completedAt": "2026-02-20T12:02:00.000Z",
"createdAt": "2026-02-20T12:00:00.000Z",
"updatedAt": "2026-02-20T12:02:00.000Z"
},
"contextHash": "a1b2c3d4e5f6a7b8",
"cached": false
}{
"error": "<string>",
"code": "<string>"
}Builds
Create Build
Create a new build or return a cached build for your uploaded context
POST
/
builds
Create a build
curl --request POST \
--url https://api.pipecat.daily.co/v1/builds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uploadId": "550e8400-e29b-41d4-a716-446655440000",
"region": "us-west",
"dockerfilePath": "Dockerfile"
}
'import requests
url = "https://api.pipecat.daily.co/v1/builds"
payload = {
"uploadId": "550e8400-e29b-41d4-a716-446655440000",
"region": "us-west",
"dockerfilePath": "Dockerfile"
}
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({
uploadId: '550e8400-e29b-41d4-a716-446655440000',
region: 'us-west',
dockerfilePath: 'Dockerfile'
})
};
fetch('https://api.pipecat.daily.co/v1/builds', 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.pipecat.daily.co/v1/builds",
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([
'uploadId' => '550e8400-e29b-41d4-a716-446655440000',
'region' => 'us-west',
'dockerfilePath' => 'Dockerfile'
]),
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.pipecat.daily.co/v1/builds"
payload := strings.NewReader("{\n \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\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.pipecat.daily.co/v1/builds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipecat.daily.co/v1/builds")
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 \"uploadId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"region\": \"us-west\",\n \"dockerfilePath\": \"Dockerfile\"\n}"
response = http.request(request)
puts response.read_body{
"build": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "org_abc123",
"status": "building",
"region": "us-west",
"contextHash": "a1b2c3d4e5f6a7b8",
"dockerfilePath": "Dockerfile",
"imageUri": "123456789.dkr.ecr.us-west-2.amazonaws.com/pipecat-cloud/org_abc123:a1b2c3d4e5f6a7b8",
"logsUrl": "https://console.aws.amazon.com/codebuild/...",
"errorMessage": "Docker build failed: COPY failed - file not found",
"contextSizeBytes": 10485760,
"imageSizeBytes": 524288000,
"buildDurationSeconds": 120,
"startedAt": "2026-02-20T12:00:00.000Z",
"completedAt": "2026-02-20T12:02:00.000Z",
"createdAt": "2026-02-20T12:00:00.000Z",
"updatedAt": "2026-02-20T12:02:00.000Z"
},
"contextHash": "a1b2c3d4e5f6a7b8",
"cached": false
}{
"build": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "org_abc123",
"status": "building",
"region": "us-west",
"contextHash": "a1b2c3d4e5f6a7b8",
"dockerfilePath": "Dockerfile",
"imageUri": "123456789.dkr.ecr.us-west-2.amazonaws.com/pipecat-cloud/org_abc123:a1b2c3d4e5f6a7b8",
"logsUrl": "https://console.aws.amazon.com/codebuild/...",
"errorMessage": "Docker build failed: COPY failed - file not found",
"contextSizeBytes": 10485760,
"imageSizeBytes": 524288000,
"buildDurationSeconds": 120,
"startedAt": "2026-02-20T12:00:00.000Z",
"completedAt": "2026-02-20T12:02:00.000Z",
"createdAt": "2026-02-20T12:00:00.000Z",
"updatedAt": "2026-02-20T12:02:00.000Z"
},
"contextHash": "a1b2c3d4e5f6a7b8",
"cached": false
}{
"error": "<string>",
"code": "<string>"
}Build Caching
Pipecat Cloud automatically caches successful builds based on three factors:- Context hash - A hash of your uploaded context archive
- Region - The target deployment region
- Dockerfile path - The path to your Dockerfile
cached: true. This makes repeated deployments much faster.
Build Flow
Example: Complete Build Flow
# 1. Get upload URL
UPLOAD_RESPONSE=$(curl -s -X POST "https://api.pipecat.daily.co/v1/builds/upload-url" \
-H "Authorization: Bearer $PIPECAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"region": "us-west"}')
UPLOAD_ID=$(echo $UPLOAD_RESPONSE | jq -r '.uploadId')
# 2. Upload context (see upload-url endpoint for details)
# 3. Create the build
BUILD_RESPONSE=$(curl -s -X POST "https://api.pipecat.daily.co/v1/builds" \
-H "Authorization: Bearer $PIPECAT_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"uploadId\": \"$UPLOAD_ID\",
\"region\": \"us-west\",
\"dockerfilePath\": \"Dockerfile\"
}")
BUILD_ID=$(echo $BUILD_RESPONSE | jq -r '.build.id')
CACHED=$(echo $BUILD_RESPONSE | jq -r '.cached')
if [ "$CACHED" = "true" ]; then
echo "Using cached build!"
IMAGE_URI=$(echo $BUILD_RESPONSE | jq -r '.build.imageUri')
else
echo "Build started: $BUILD_ID"
echo "Poll GET /builds/$BUILD_ID for status"
fi
Build Statuses
| Status | Description |
|---|---|
pending | Build created, waiting to start |
building | Build is in progress |
success | Build completed successfully, imageUri is available |
failed | Build failed, check errorMessage for details |
timeout | Build exceeded the time limit |
Authorizations
Authentication using a Pipecat Cloud API token.
Body
application/json
The upload ID returned from the upload-url endpoint.
Example:
"550e8400-e29b-41d4-a716-446655440000"
Target region for the build. Must match the region used when getting the upload URL.
Example:
"us-west"
Path to the Dockerfile within the context archive.
Example:
"Dockerfile"
⌘I