Get a message sent to a coding session on an imported app
curl --request GET \
--url https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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{
"id": "6820f3a4e7b91d003c45a1f9",
"state": "pending",
"session": {
"id": "6820f3a4e7b91d003c45a1f2",
"created_by_user_id": "6820f3a4e7b91d003c45a1f4",
"state": "running",
"message_id": "ca00e880-1111-4444-aaaa-ccddeeff0011",
"repository_full_name": "acme/project",
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"session_url": "https://app.base44.com/apps/6820f3a4e7b91d003c45a1f2/editor/preview",
"pull_request": {
"number": 123,
"url": "https://github.com/acme/project/pull/123"
},
"error_code": "execution_failed",
"launch_key": "flag-cleanup-123",
"client_reference": "release-task-123",
"input_request_id": "ca00e880-1111-4444-aaaa-ccddeeff0011",
"pull_requests": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_draft": false,
"number": 123,
"repository_full_name": "acme/project",
"state": "open",
"url": "https://github.com/acme/project/pull/123"
},
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_draft": false,
"number": 45,
"repository_full_name": "acme/api",
"state": "merged",
"url": "https://github.com/acme/api/pull/45"
}
],
"branches": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_current": false
},
{
"branch_id": "6820f3a4e7b91d003c45a1f5",
"branch_name": "fix-login-copy",
"is_current": true
}
],
"error_reason": "The branch's sandbox ran out of disk space. Crash dumps were removed; send the message again.",
"outcome": "pull_request",
"summary": "Removed the retired flag and kept the enabled behavior.",
"live_turns": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3"
}
],
"latest_watch_summary": "Re-ran the flaky check: infrastructure timeout, no code change needed.",
"has_unpublished_changes": false,
"push_failed": false
},
"error_code": null
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}Base code
Get a message sent to a coding session on an imported app
This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.
Read whether a message, answer or approval was delivered. state is pending until the session takes it, delivered once it does, or failed with an error_code such as input_request_changed, session_busy, pull_request_merged, cancelled or delivery_interrupted; send a failed message again with a new Idempotency-Key. Shares the read limit of 60 requests per minute per user.
GET
/
api
/
apps
/
{app_id}
/
imported
/
sessions
/
{session_id}
/
messages
/
{input_id}
Get a message sent to a coding session on an imported app
curl --request GET \
--url https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/imported/sessions/{session_id}/messages/{input_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{
"id": "6820f3a4e7b91d003c45a1f9",
"state": "pending",
"session": {
"id": "6820f3a4e7b91d003c45a1f2",
"created_by_user_id": "6820f3a4e7b91d003c45a1f4",
"state": "running",
"message_id": "ca00e880-1111-4444-aaaa-ccddeeff0011",
"repository_full_name": "acme/project",
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"session_url": "https://app.base44.com/apps/6820f3a4e7b91d003c45a1f2/editor/preview",
"pull_request": {
"number": 123,
"url": "https://github.com/acme/project/pull/123"
},
"error_code": "execution_failed",
"launch_key": "flag-cleanup-123",
"client_reference": "release-task-123",
"input_request_id": "ca00e880-1111-4444-aaaa-ccddeeff0011",
"pull_requests": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_draft": false,
"number": 123,
"repository_full_name": "acme/project",
"state": "open",
"url": "https://github.com/acme/project/pull/123"
},
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_draft": false,
"number": 45,
"repository_full_name": "acme/api",
"state": "merged",
"url": "https://github.com/acme/api/pull/45"
}
],
"branches": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3",
"branch_name": "base-code/fix-login-redirect-45a1f2",
"is_current": false
},
{
"branch_id": "6820f3a4e7b91d003c45a1f5",
"branch_name": "fix-login-copy",
"is_current": true
}
],
"error_reason": "The branch's sandbox ran out of disk space. Crash dumps were removed; send the message again.",
"outcome": "pull_request",
"summary": "Removed the retired flag and kept the enabled behavior.",
"live_turns": [
{
"branch_id": "6820f3a4e7b91d003c45a1f3"
}
],
"latest_watch_summary": "Re-ran the flaky check: infrastructure timeout, no code change needed.",
"has_unpublished_changes": false,
"push_failed": false
},
"error_code": null
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "App not found",
"details": {}
}
}{
"error": {
"code": "database_unavailable",
"message": "Database temporarily unavailable, please retry",
"details": {}
}
}Authorizations
PersonalAccessTokenAuthWorkspaceApiKeyAuthWorkspaceApiKeyBearerAuth
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
Path Parameters
Response
Successful Response
Was this page helpful?