Start a personal offers import
curl --request POST \
--url https://{host}/promotion/v3/personaloffers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"executionId": "3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53",
"flowId": "8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74"
}
'import requests
url = "https://{host}/promotion/v3/personaloffers"
payload = {
"executionId": "3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53",
"flowId": "8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
executionId: '3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53',
flowId: '8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74'
})
};
fetch('https://{host}/promotion/v3/personaloffers', 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://{host}/promotion/v3/personaloffers",
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([
'executionId' => '3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53',
'flowId' => '8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://{host}/promotion/v3/personaloffers"
payload := strings.NewReader("{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://{host}/promotion/v3/personaloffers")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v3/personaloffers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": 1042
}{
"name": "<string>",
"message": "<string>",
"details": null
}Start a personal offers import
A TurboFlow flow in Lobyco Nexus calls this once it has computed a set of personal offers in the data platform. The import
runs in the background, and the flow polls GET /v3/personaloffers/status until it is done. Calling it again with the same
executionId and flowId returns the job that already exists instead of starting another.
POST
/
v3
/
personaloffers
Start a personal offers import
curl --request POST \
--url https://{host}/promotion/v3/personaloffers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"executionId": "3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53",
"flowId": "8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74"
}
'import requests
url = "https://{host}/promotion/v3/personaloffers"
payload = {
"executionId": "3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53",
"flowId": "8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
executionId: '3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53',
flowId: '8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74'
})
};
fetch('https://{host}/promotion/v3/personaloffers', 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://{host}/promotion/v3/personaloffers",
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([
'executionId' => '3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53',
'flowId' => '8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://{host}/promotion/v3/personaloffers"
payload := strings.NewReader("{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://{host}/promotion/v3/personaloffers")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/promotion/v3/personaloffers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"executionId\": \"3f2c9a7e-5b1d-4e8a-9c6f-2d7b8a1e4c53\",\n \"flowId\": \"8a4d1f6b-2c3e-47d9-b5a1-6e9f0c2d8b74\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": 1042
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Body
application/json
The execution and flow the personal offers come from.
Which TurboFlow execution's personal offers to import.
Last modified on August 10, 2026