curl --request POST \
--url http://co-mind-platform-host/v1/responses/{resp_id}/continue \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-4o-mini",
"input": "<string>",
"instructions": "<string>",
"max_output_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"stream": false,
"previous_response_id": "<string>"
}
'import requests
url = "http://co-mind-platform-host/v1/responses/{resp_id}/continue"
payload = {
"model": "gpt-4o-mini",
"input": "<string>",
"instructions": "<string>",
"max_output_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"stream": False,
"previous_response_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'gpt-4o-mini',
input: '<string>',
instructions: '<string>',
max_output_tokens: 2,
temperature: 1,
top_p: 0.5,
stream: false,
previous_response_id: '<string>'
})
};
fetch('http://co-mind-platform-host/v1/responses/{resp_id}/continue', 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 => "http://co-mind-platform-host/v1/responses/{resp_id}/continue",
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([
'model' => 'gpt-4o-mini',
'input' => '<string>',
'instructions' => '<string>',
'max_output_tokens' => 2,
'temperature' => 1,
'top_p' => 0.5,
'stream' => false,
'previous_response_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://co-mind-platform-host/v1/responses/{resp_id}/continue"
payload := strings.NewReader("{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://co-mind-platform-host/v1/responses/{resp_id}/continue")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://co-mind-platform-host/v1/responses/{resp_id}/continue")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "resp_abc123",
"object": "response",
"created": 123,
"model": "<string>",
"output": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error",
"code": "bad_request"
}
}{
"error": {
"message": "Invalid authentication credentials",
"type": "permission_error",
"code": "unauthorized"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_exceeded",
"code": "rate_limit_exceeded"
}
}Continue a prior response
Continue extending a prior response by its resp_id. The request body accepts the same passthrough shape as POST /v1/responses; the additional input is appended to the prior response’s context on the backend. Tenant model-policy, BYOK header injection, and rate-limit behaviour match POST /v1/responses.
curl --request POST \
--url http://co-mind-platform-host/v1/responses/{resp_id}/continue \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-4o-mini",
"input": "<string>",
"instructions": "<string>",
"max_output_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"stream": false,
"previous_response_id": "<string>"
}
'import requests
url = "http://co-mind-platform-host/v1/responses/{resp_id}/continue"
payload = {
"model": "gpt-4o-mini",
"input": "<string>",
"instructions": "<string>",
"max_output_tokens": 2,
"temperature": 1,
"top_p": 0.5,
"stream": False,
"previous_response_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'gpt-4o-mini',
input: '<string>',
instructions: '<string>',
max_output_tokens: 2,
temperature: 1,
top_p: 0.5,
stream: false,
previous_response_id: '<string>'
})
};
fetch('http://co-mind-platform-host/v1/responses/{resp_id}/continue', 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 => "http://co-mind-platform-host/v1/responses/{resp_id}/continue",
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([
'model' => 'gpt-4o-mini',
'input' => '<string>',
'instructions' => '<string>',
'max_output_tokens' => 2,
'temperature' => 1,
'top_p' => 0.5,
'stream' => false,
'previous_response_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://co-mind-platform-host/v1/responses/{resp_id}/continue"
payload := strings.NewReader("{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://co-mind-platform-host/v1/responses/{resp_id}/continue")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://co-mind-platform-host/v1/responses/{resp_id}/continue")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"gpt-4o-mini\",\n \"input\": \"<string>\",\n \"instructions\": \"<string>\",\n \"max_output_tokens\": 2,\n \"temperature\": 1,\n \"top_p\": 0.5,\n \"stream\": false,\n \"previous_response_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "resp_abc123",
"object": "response",
"created": 123,
"model": "<string>",
"output": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error",
"code": "bad_request"
}
}{
"error": {
"message": "Invalid authentication credentials",
"type": "permission_error",
"code": "unauthorized"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_exceeded",
"code": "rate_limit_exceeded"
}
}Authorizations
Bearer token authentication. Supports two token types:
- JWT Access Token — obtained via
POST /v1/auth/login - Personal Access Token (PAT) — created via
POST /v1/api-tokens, format:cmnd_<tokenId>.<secret>
Path Parameters
Id of the prior response to continue
Body
"gpt-4o-mini"
The prompt or conversation input. Accepts either a plain string or an array of typed content parts (text, input_image, input_file, …) per the Responses API shape supported by the backend model.
Optional system-style instructions applied to the response.
x >= 10 <= x <= 20 <= x <= 1Id of a prior response to continue. Callers can also POST to /v1/responses/{resp_id}/continue.
Response
Successful response
"resp_abc123"
"response"
Model output. Shape depends on the backend and on whether stream was requested; for non-streaming calls this is typically an array of content parts (or a compact output_text string alongside them).
Show child attributes
Show child attributes

