cURL
curl -sS -X GET "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID" \
-H "Authorization: Bearer $ONDIAL_API_KEY"const res = await fetch("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.ONDIAL_API_KEY}`,
},
});
const data = await res.json();
console.log(res.status, data);import os
import requests
res = requests.request(
"GET",
"https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID",
headers={
"Authorization": f"Bearer {os.environ['ONDIAL_API_KEY']}",
},
timeout=30,
)
print(res.status_code, res.json())<?php
$ch = curl_init("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("ONDIAL_API_KEY"),
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . " " . $response;import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID"))
.header("Authorization", "Bearer " + System.getenv("ONDIAL_API_KEY"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System;
using System.Net.Http;
using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID");
request.Headers.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("ONDIAL_API_KEY"));
var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode + " " + await response.Content.ReadAsStringAsync());package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("ONDIAL_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.StatusCode, string(out))
}{
"contactId": "<string>",
"campaignId": "<string>",
"phone": "<string>",
"status": "<string>",
"callReceiveStatus": 123,
"whatsappStatus": "<string>",
"whatsappQueueStatus": "<string>",
"emailStatus": "<string>",
"emailScheduledAt": "2023-11-07T05:31:56Z",
"whatsappScheduledAt": "2023-11-07T05:31:56Z",
"emailTemplateId": "<string>",
"emailProfileId": "<string>",
"whatsappTemplateId": "<string>",
"whatsappProfileId": "<string>",
"isFollowUp": true,
"scheduledAt": "2023-11-07T05:31:56Z",
"requestedChannels": [
"<string>"
],
"source": "<string>",
"sandbox": true,
"deletedAt": "2023-11-07T05:31:56Z",
"lastCall": {
"callId": "<string>",
"status": "<string>",
"hasAnalysis": true,
"startedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "Invalid or inactive API key",
"reasonCode": "unauthorized"
}{
"error": "Not found",
"reasonCode": "not_found"
}Get contact
Poll contact status after lead ingest - includes lastCall pointer.
GET
https://dashboard.ondial.ai
/
api
/
v1
/
contacts
/
{id}
cURL
curl -sS -X GET "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID" \
-H "Authorization: Bearer $ONDIAL_API_KEY"const res = await fetch("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.ONDIAL_API_KEY}`,
},
});
const data = await res.json();
console.log(res.status, data);import os
import requests
res = requests.request(
"GET",
"https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID",
headers={
"Authorization": f"Bearer {os.environ['ONDIAL_API_KEY']}",
},
timeout=30,
)
print(res.status_code, res.json())<?php
$ch = curl_init("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("ONDIAL_API_KEY"),
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . " " . $response;import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID"))
.header("Authorization", "Bearer " + System.getenv("ONDIAL_API_KEY"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System;
using System.Net.Http;
using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID");
request.Headers.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("ONDIAL_API_KEY"));
var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode + " " + await response.Content.ReadAsStringAsync());package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://dashboard.ondial.ai/api/v1/contacts/YOUR_ID", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("ONDIAL_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.StatusCode, string(out))
}{
"contactId": "<string>",
"campaignId": "<string>",
"phone": "<string>",
"status": "<string>",
"callReceiveStatus": 123,
"whatsappStatus": "<string>",
"whatsappQueueStatus": "<string>",
"emailStatus": "<string>",
"emailScheduledAt": "2023-11-07T05:31:56Z",
"whatsappScheduledAt": "2023-11-07T05:31:56Z",
"emailTemplateId": "<string>",
"emailProfileId": "<string>",
"whatsappTemplateId": "<string>",
"whatsappProfileId": "<string>",
"isFollowUp": true,
"scheduledAt": "2023-11-07T05:31:56Z",
"requestedChannels": [
"<string>"
],
"source": "<string>",
"sandbox": true,
"deletedAt": "2023-11-07T05:31:56Z",
"lastCall": {
"callId": "<string>",
"status": "<string>",
"hasAnalysis": true,
"startedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "Invalid or inactive API key",
"reasonCode": "unauthorized"
}{
"error": "Not found",
"reasonCode": "not_found"
}Returns status fields (
status, callReceiveStatus, WhatsApp/email queue fields, source, sandbox) plus:
| Field | Meaning |
|---|---|
lastCall | Latest dial pointer (callId, status, hasAnalysis, startedAt) or null |
emailTemplateId / emailProfileId | Pending Omni email send (from lead ingest) |
whatsappTemplateId / whatsappProfileId | Pending Omni WhatsApp send |
emailScheduledAt / whatsappScheduledAt | First-touch send clocks |
templateVariables / whatsappParams | Merge vars queued for send |
Try It
- Paste your API key (Bearer)
- Set path
idto yourcontactId
lastCall.callId with List contact calls / Get contact call for transcript and analysis. Poll until lastCall.hasAnalysis is true if you need AI results.Authorizations
Paste only your API key (ond_live_… or ond_test_…). Do not type the word Bearer - the playground adds it.
Path Parameters
Response
Contact

