Submit ICE candidate
curl --request POST \
--url https://api.humain.ai/v1/sessions/{sid}/webrtc/ice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"candidate": "<string>",
"sdp_mid": "<string>",
"sdp_mline_index": 123
}
'import requests
url = "https://api.humain.ai/v1/sessions/{sid}/webrtc/ice"
payload = {
"candidate": "<string>",
"sdp_mid": "<string>",
"sdp_mline_index": 123
}
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({candidate: '<string>', sdp_mid: '<string>', sdp_mline_index: 123})
};
fetch('https://api.humain.ai/v1/sessions/{sid}/webrtc/ice', 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.humain.ai/v1/sessions/{sid}/webrtc/ice",
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([
'candidate' => '<string>',
'sdp_mid' => '<string>',
'sdp_mline_index' => 123
]),
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 := "https://api.humain.ai/v1/sessions/{sid}/webrtc/ice"
payload := strings.NewReader("{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\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("https://api.humain.ai/v1/sessions/{sid}/webrtc/ice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humain.ai/v1/sessions/{sid}/webrtc/ice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\n}"
response = http.request(request)
puts response.read_bodyVoice (WebRTC)
Submit ICE candidate
Submits a WebRTC ICE candidate discovered by the client during the connection
establishment phase. Served on agent_url, not necessarily the host that served
POST /v1/sessions. Call this for each candidate emitted by the
RTCPeerConnection.onicecandidate event, after a successful
POST {agent_url}/v1/sessions/{sid}/webrtc/offer.
POST
/
v1
/
sessions
/
{sid}
/
webrtc
/
ice
Submit ICE candidate
curl --request POST \
--url https://api.humain.ai/v1/sessions/{sid}/webrtc/ice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"candidate": "<string>",
"sdp_mid": "<string>",
"sdp_mline_index": 123
}
'import requests
url = "https://api.humain.ai/v1/sessions/{sid}/webrtc/ice"
payload = {
"candidate": "<string>",
"sdp_mid": "<string>",
"sdp_mline_index": 123
}
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({candidate: '<string>', sdp_mid: '<string>', sdp_mline_index: 123})
};
fetch('https://api.humain.ai/v1/sessions/{sid}/webrtc/ice', 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.humain.ai/v1/sessions/{sid}/webrtc/ice",
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([
'candidate' => '<string>',
'sdp_mid' => '<string>',
'sdp_mline_index' => 123
]),
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 := "https://api.humain.ai/v1/sessions/{sid}/webrtc/ice"
payload := strings.NewReader("{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\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("https://api.humain.ai/v1/sessions/{sid}/webrtc/ice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humain.ai/v1/sessions/{sid}/webrtc/ice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"candidate\": \"<string>\",\n \"sdp_mid\": \"<string>\",\n \"sdp_mline_index\": 123\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Device credential issued from the Humain admin panel under Kiosk → Credentials → Issue new credential.
Format: hk_live_ (production) or hk_test_ (sandbox) followed by 43 base64url
characters (32 random bytes). The raw token is shown only once at creation time and
is never stored in plain text.
Path Parameters
Body
application/json
Response
ICE candidate accepted — no body returned