Start agent session
curl --request POST \
--url https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agentId": "<string>",
"instruction": "<string>",
"title": "<string>",
"source": "<string>",
"prospectId": "<string>"
}
'import requests
url = "https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start"
payload = {
"agentId": "<string>",
"instruction": "<string>",
"title": "<string>",
"source": "<string>",
"prospectId": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agentId: '<string>',
instruction: '<string>',
title: '<string>',
source: '<string>',
prospectId: '<string>'
})
};
fetch('https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start', 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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start",
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([
'agentId' => '<string>',
'instruction' => '<string>',
'title' => '<string>',
'source' => '<string>',
'prospectId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start"
payload := strings.NewReader("{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "<string>"
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}Agent Sessions
Start agent session
Creates the session record, appends the initial instruction as a user message event, and triggers the agent workflow — all in a single call. The session_id must be a client-generated UUID v4 and is used to idempotently reference the session afterward.
POST
/
org
/
{org_id}
/
agent-sessions
/
{session_id}
/
start
Start agent session
curl --request POST \
--url https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"agentId": "<string>",
"instruction": "<string>",
"title": "<string>",
"source": "<string>",
"prospectId": "<string>"
}
'import requests
url = "https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start"
payload = {
"agentId": "<string>",
"instruction": "<string>",
"title": "<string>",
"source": "<string>",
"prospectId": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agentId: '<string>',
instruction: '<string>',
title: '<string>',
source: '<string>',
prospectId: '<string>'
})
};
fetch('https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start', 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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start",
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([
'agentId' => '<string>',
'instruction' => '<string>',
'title' => '<string>',
'source' => '<string>',
'prospectId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start"
payload := strings.NewReader("{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v2-nova-api.prod.czmx.in/api/org/{org_id}/agent-sessions/{session_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"<string>\",\n \"instruction\": \"<string>\",\n \"title\": \"<string>\",\n \"source\": \"<string>\",\n \"prospectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "<string>"
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}{
"data": "<unknown>",
"error": "<unknown>",
"message": "<string>",
"status": true
}Authorizations
Path Parameters
Organization ID
Client-generated UUID v4 for the session
Body
application/json
Session start parameters
ID of the agent to run for this session.
Initial instruction sent to the agent as the first user message.
Human-readable label for the session.
Caller identifier (e.g. command-center, api).
ID of an existing prospect to associate with the session.
Response
Session started
The UUID of the newly started session.
⌘I

