Skip to main content
GET
/
phoneConnections
Get phone connections
curl --request GET \
  --url https://api.galtea.ai/phoneConnections \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.galtea.ai/phoneConnections"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.galtea.ai/phoneConnections', 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.galtea.ai/phoneConnections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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.galtea.ai/phoneConnections"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.galtea.ai/phoneConnections")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.galtea.ai/phoneConnections")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
[
  {
    "productId": "prod_123",
    "name": "Support line",
    "phoneNumber": "+14155552671",
    "id": "phoneConnection_123",
    "userId": "user_123",
    "agentSpeaksFirst": false,
    "createdAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  }
]
{
"error": "Error type",
"message": "Error message description"
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Query Parameters

ids
string[]

Filter by phone connection IDs

productIds
string[]

Filter by product IDs

names
string[]

Filter by phone connection names (exact match, multiple)

name
string

Filter by phone connection name (partial match)

phoneNumbers
string[]

Filter by phone numbers (exact match, multiple)

phoneNumber
string

Filter by phone number (partial match)

sort
string[]

Sort instructions (field and direction pairs)

limit
integer

Maximum number of results

offset
integer

Number of results to skip

fromCreatedAt
string<date-time>

Filter phone connections created at or after this timestamp (ISO 8601 format)

toCreatedAt
string<date-time>

Filter phone connections created at or before this timestamp (ISO 8601 format)

Response

Phone connections retrieved successfully

productId
string
required
Example:

"prod_123"

name
string
required
Example:

"Support line"

phoneNumber
string
required

The phone number Galtea dials, in E.164 format.

Example:

"+14155552671"

id
string
Example:

"phoneConnection_123"

userId
string | null
Example:

"user_123"

agentSpeaksFirst
boolean
default:false

Whether the voice agent opens the conversation once the call connects. false (default) means the simulated caller speaks first; true suits interviewer-style agents that greet first.

Example:

false

createdAt
string<date-time>
deletedAt
string<date-time> | null