Get a text generation
curl --request GET \
--url https://api.backapp.dev/v2/texts/generations/{job_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Key: <api-key>' \
--header 'X-App-Version: <x-app-version>'import requests
url = "https://api.backapp.dev/v2/texts/generations/{job_id}"
headers = {
"X-App-Version": "<x-app-version>",
"X-App-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-App-Version': '<x-app-version>',
'X-App-Key': '<api-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.backapp.dev/v2/texts/generations/{job_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://api.backapp.dev/v2/texts/generations/{job_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>",
"X-App-Key: <api-key>",
"X-App-Version: <x-app-version>"
],
]);
$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.backapp.dev/v2/texts/generations/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-App-Version", "<x-app-version>")
req.Header.Add("X-App-Key", "<api-key>")
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.backapp.dev/v2/texts/generations/{job_id}")
.header("X-App-Version", "<x-app-version>")
.header("X-App-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backapp.dev/v2/texts/generations/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Version"] = '<x-app-version>'
request["X-App-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job_id": "20000000-0000-4000-8000-000000000002",
"operation": "text_to_text",
"status": "completed",
"input": {
"model": "openai:gpt-6-luna",
"prompt": "Translate Good morning into French. Return only the translation.",
"reasoning_effort": "none",
"max_output_tokens": 64
},
"result": {
"text": "Bonjour.",
"truncated": false
},
"error": null,
"created_at": "2026-11-17T18:00:00.187766Z",
"finished_at": "2026-11-17T18:00:03.269780Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}Text to Text
Get a text generation
Returns a text generation job belonging to the current app and user.
Get a text generation
curl --request GET \
--url https://api.backapp.dev/v2/texts/generations/{job_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Key: <api-key>' \
--header 'X-App-Version: <x-app-version>'import requests
url = "https://api.backapp.dev/v2/texts/generations/{job_id}"
headers = {
"X-App-Version": "<x-app-version>",
"X-App-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-App-Version': '<x-app-version>',
'X-App-Key': '<api-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.backapp.dev/v2/texts/generations/{job_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://api.backapp.dev/v2/texts/generations/{job_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>",
"X-App-Key: <api-key>",
"X-App-Version: <x-app-version>"
],
]);
$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.backapp.dev/v2/texts/generations/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-App-Version", "<x-app-version>")
req.Header.Add("X-App-Key", "<api-key>")
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.backapp.dev/v2/texts/generations/{job_id}")
.header("X-App-Version", "<x-app-version>")
.header("X-App-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backapp.dev/v2/texts/generations/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Version"] = '<x-app-version>'
request["X-App-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job_id": "20000000-0000-4000-8000-000000000002",
"operation": "text_to_text",
"status": "completed",
"input": {
"model": "openai:gpt-6-luna",
"prompt": "Translate Good morning into French. Return only the translation.",
"reasoning_effort": "none",
"max_output_tokens": 64
},
"result": {
"text": "Bonjour.",
"truncated": false
},
"error": null,
"created_at": "2026-11-17T18:00:00.187766Z",
"finished_at": "2026-11-17T18:00:03.269780Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {}
}
}Authorizations
Response
Text generation job

