curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/imported/agent-runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"deployment_id": "<string>",
"base_sha": "<string>",
"head_sha": "<string>",
"source": {
"kind": "github_pull_request",
"number": 2
}
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/agent-runs"
payload = {
"deployment_id": "<string>",
"base_sha": "<string>",
"head_sha": "<string>",
"source": {
"kind": "github_pull_request",
"number": 2
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deployment_id: '<string>',
base_sha: '<string>',
head_sha: '<string>',
source: {kind: 'github_pull_request', number: 2}
})
};
fetch('https://app.base44.com/api/apps/{app_id}/imported/agent-runs', 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://app.base44.com/api/apps/{app_id}/imported/agent-runs",
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([
'deployment_id' => '<string>',
'base_sha' => '<string>',
'head_sha' => '<string>',
'source' => [
'kind' => 'github_pull_request',
'number' => 2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://app.base44.com/api/apps/{app_id}/imported/agent-runs"
payload := strings.NewReader("{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://app.base44.com/api/apps/{app_id}/imported/agent-runs")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/agent-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "6820f3a4e7b91d003c45a1f3",
"deployment_id": "6820f3a4e7b91d003c45a1f2",
"status": "queued",
"base_sha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"head_sha": "cccccccccccccccccccccccccccccccccccccccc",
"source": {
"kind": "github_pull_request",
"number": 12
},
"package_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"created_date": "2026-10-30T00:00:00Z"
}Start agent run
Authenticate with a platform Bearer credential or full-access workspace key permitted to edit this app. Scoped workspace keys are not accepted. Shares 60 reads or 6 mutations per minute per credential. Responses include request and rate-limit headers; 429 includes Retry-After. Queue one execution of an immutable deployment against exact commits. A PR number additionally requires matching current PR commits. Runs continue after disconnect. Retry with the same Idempotency-Key to recover a run whose response was lost. The free developer preview allows 20 execution attempts per workspace per UTC day. Interrupted model work is not replayed automatically. Results expire after 30 days.
curl --request POST \
--url https://app.base44.com/api/apps/{app_id}/imported/agent-runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"deployment_id": "<string>",
"base_sha": "<string>",
"head_sha": "<string>",
"source": {
"kind": "github_pull_request",
"number": 2
}
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/agent-runs"
payload = {
"deployment_id": "<string>",
"base_sha": "<string>",
"head_sha": "<string>",
"source": {
"kind": "github_pull_request",
"number": 2
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deployment_id: '<string>',
base_sha: '<string>',
head_sha: '<string>',
source: {kind: 'github_pull_request', number: 2}
})
};
fetch('https://app.base44.com/api/apps/{app_id}/imported/agent-runs', 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://app.base44.com/api/apps/{app_id}/imported/agent-runs",
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([
'deployment_id' => '<string>',
'base_sha' => '<string>',
'head_sha' => '<string>',
'source' => [
'kind' => 'github_pull_request',
'number' => 2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://app.base44.com/api/apps/{app_id}/imported/agent-runs"
payload := strings.NewReader("{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://app.base44.com/api/apps/{app_id}/imported/agent-runs")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/agent-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deployment_id\": \"<string>\",\n \"base_sha\": \"<string>\",\n \"head_sha\": \"<string>\",\n \"source\": {\n \"kind\": \"github_pull_request\",\n \"number\": 2\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "6820f3a4e7b91d003c45a1f3",
"deployment_id": "6820f3a4e7b91d003c45a1f2",
"status": "queued",
"base_sha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"head_sha": "cccccccccccccccccccccccccccccccccccccccc",
"source": {
"kind": "github_pull_request",
"number": 12
},
"package_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"created_date": "2026-10-30T00:00:00Z"
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Scopes
Headers
Path Parameters
Body
Response
Successful Response
Was this page helpful?