Calls
Put v1calls
PUT
/
v1
/
calls
/
{call_uuid}
cURL
curl --request PUT \
--url https://api.lighthousefh.com/v1/calls/{call_uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": {
"assembly_ai_id": "<string>"
},
"speaker_labels": {},
"transcript": {
"words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
]
}
}
'import requests
url = "https://api.lighthousefh.com/v1/calls/{call_uuid}"
payload = {
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": { "assembly_ai_id": "<string>" },
"speaker_labels": {},
"transcript": { "words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: 123,
file_format: '<string>',
file_name: '<string>',
file_path: '<string>',
file_size: 123,
provider_metadata: {assembly_ai_id: '<string>'},
speaker_labels: {},
transcript: {
words: [
{
confidence: 123,
end_ms: 123,
start_ms: 123,
text: '<string>',
speaker: '<string>'
}
]
}
})
};
fetch('https://api.lighthousefh.com/v1/calls/{call_uuid}', 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.lighthousefh.com/v1/calls/{call_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'duration' => 123,
'file_format' => '<string>',
'file_name' => '<string>',
'file_path' => '<string>',
'file_size' => 123,
'provider_metadata' => [
'assembly_ai_id' => '<string>'
],
'speaker_labels' => [
],
'transcript' => [
'words' => [
[
'confidence' => 123,
'end_ms' => 123,
'start_ms' => 123,
'text' => '<string>',
'speaker' => '<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 := "https://api.lighthousefh.com/v1/calls/{call_uuid}"
payload := strings.NewReader("{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lighthousefh.com/v1/calls/{call_uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lighthousefh.com/v1/calls/{call_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"speaker_labels": {},
"updated_at": "2023-11-07T05:31:56Z",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": {
"assembly_ai_id": "<string>"
},
"transcript": {
"words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
]
}
},
"message": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": "<string>",
"status_code": 1,
"timestamp": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": "<string>",
"status_code": 1,
"timestamp": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Call UUID
Body
application/json
Provider metadata for storing provider-specific information
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Lifecycle of a call from creation through processing. Stored as TEXT in the DB (no Postgres enum) — the API is the sole writer, so enforcement lives here.
Transitions: CREATED → set on insert (column default), no audio yet FILE_UPLOADED → set when client first attaches a file_path PROCESSING → set at start of process_call PROCESSED → set after process_call completes successfully FAILED → set when process_call returns Err
Available options:
CREATED, FILE_UPLOADED, PROCESSING, PROCESSED, FAILED Show child attributes
Show child attributes
⌘I
cURL
curl --request PUT \
--url https://api.lighthousefh.com/v1/calls/{call_uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": {
"assembly_ai_id": "<string>"
},
"speaker_labels": {},
"transcript": {
"words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
]
}
}
'import requests
url = "https://api.lighthousefh.com/v1/calls/{call_uuid}"
payload = {
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": { "assembly_ai_id": "<string>" },
"speaker_labels": {},
"transcript": { "words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
duration: 123,
file_format: '<string>',
file_name: '<string>',
file_path: '<string>',
file_size: 123,
provider_metadata: {assembly_ai_id: '<string>'},
speaker_labels: {},
transcript: {
words: [
{
confidence: 123,
end_ms: 123,
start_ms: 123,
text: '<string>',
speaker: '<string>'
}
]
}
})
};
fetch('https://api.lighthousefh.com/v1/calls/{call_uuid}', 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.lighthousefh.com/v1/calls/{call_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'duration' => 123,
'file_format' => '<string>',
'file_name' => '<string>',
'file_path' => '<string>',
'file_size' => 123,
'provider_metadata' => [
'assembly_ai_id' => '<string>'
],
'speaker_labels' => [
],
'transcript' => [
'words' => [
[
'confidence' => 123,
'end_ms' => 123,
'start_ms' => 123,
'text' => '<string>',
'speaker' => '<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 := "https://api.lighthousefh.com/v1/calls/{call_uuid}"
payload := strings.NewReader("{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.lighthousefh.com/v1/calls/{call_uuid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lighthousefh.com/v1/calls/{call_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"duration\": 123,\n \"file_format\": \"<string>\",\n \"file_name\": \"<string>\",\n \"file_path\": \"<string>\",\n \"file_size\": 123,\n \"provider_metadata\": {\n \"assembly_ai_id\": \"<string>\"\n },\n \"speaker_labels\": {},\n \"transcript\": {\n \"words\": [\n {\n \"confidence\": 123,\n \"end_ms\": 123,\n \"start_ms\": 123,\n \"text\": \"<string>\",\n \"speaker\": \"<string>\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"speaker_labels": {},
"updated_at": "2023-11-07T05:31:56Z",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration": 123,
"file_format": "<string>",
"file_name": "<string>",
"file_path": "<string>",
"file_size": 123,
"provider_metadata": {
"assembly_ai_id": "<string>"
},
"transcript": {
"words": [
{
"confidence": 123,
"end_ms": 123,
"start_ms": 123,
"text": "<string>",
"speaker": "<string>"
}
]
}
},
"message": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": "<string>",
"status_code": 1,
"timestamp": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": "<string>",
"status_code": 1,
"timestamp": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}