Simulations
POST /v1/send-http-text-message
Reply in an HTTP text simulation.
POST /v1/send-http-text-message
curl --request POST \
--url https://api.getbluejay.ai/v1/send-http-text-messageimport requests
url = "https://api.getbluejay.ai/v1/send-http-text-message"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.getbluejay.ai/v1/send-http-text-message', 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.getbluejay.ai/v1/send-http-text-message",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.getbluejay.ai/v1/send-http-text-message"
req, _ := http.NewRequest("POST", url, nil)
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.getbluejay.ai/v1/send-http-text-message")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/send-http-text-message")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySends one agent turn into a running HTTP text simulation. The Digital Human reply goes to the webhook in the agent settings.
Fields
| Field | Type | Description |
|---|---|---|
| string | Required. The simulation result to send to. | |
type | string | message (default) or tool_call. |
message | string | Required when type is message. The agent text. |
name | string | Required when type is tool_call. The tool name. |
parameters | object | Tool parameters. |
output | any | Tool output. |
end_turn | boolean | Default true. If false, Bluejay holds the message and waits for more. |
| boolean | Default false. If true, Bluejay ends and evaluates the conversation. | |
message_id | string | Unique ID. Bluejay drops a repeated ID in the same conversation. |
Headers
Request body
Response
Status codes
| Status | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
Example request
curl --request POST \
--url https://api.getbluejay.ai/v1/send-http-text-message \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"simulation_result_id": "<string>",
"end_conversation": false,
"end_turn": true,
"message_id": "<string>",
"type": "message",
"message": "<string>"
}'
Example response
200
{
"simulation_result_id": "<string>",
"status": "success",
"end_conversation": false
}
Last modified on October 21, 2026
⌘I
POST /v1/send-http-text-message
curl --request POST \
--url https://api.getbluejay.ai/v1/send-http-text-messageimport requests
url = "https://api.getbluejay.ai/v1/send-http-text-message"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.getbluejay.ai/v1/send-http-text-message', 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.getbluejay.ai/v1/send-http-text-message",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.getbluejay.ai/v1/send-http-text-message"
req, _ := http.NewRequest("POST", url, nil)
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.getbluejay.ai/v1/send-http-text-message")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getbluejay.ai/v1/send-http-text-message")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body