Obtener llamada
Devuelve una llamada del número de la credencial. Los SDP se omiten por defecto: pasa ?includeSdp=1 para recibir sdpOffer/sdpAnswer (necesarios para contestar una llamada entrante en un número de Meta; null en números web). Cuando la configuración de privacidad del número oculta la llamada (solo relay, o más antigua que la ventana de retención), peerNumber, fromNumber y los SDP son null y el objeto trae redacted: true. externalCallId es null mientras el proveedor aún no asigna un id. 404 CALL_NOT_FOUND cuando la llamada no pertenece al número. Los fallos del proveedor aparecen con un code mapeado (p. ej. META_CALL_PERMISSION_REQUIRED, META_CALLING_NOT_ENABLED; si no, WHATSAPP_UPSTREAM_ERROR), el estado HTTP del proveedor y details: { status, body }.
Auth: una clave de número (ps_number_), o una clave de workspace (ps_workspace_) / clave de cuenta (ps_account_, más x-workspace-id) / token OAuth que indique el número en x-whatsapp-number-id. Sin número → 403 TENANT_SCOPE_NOT_ALLOWED. Con una clave de cuenta o un token OAuth, el rol del usuario en el workspace debe permitir calls:handle (AGENT, ADMIN u OWNER); si no → 403 PERMISSION_DENIED.
curl --request GET \
--url https://pilotstatus.com.br/v1/calls/{callId} \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/calls/{callId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/calls/{callId}', 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://pilotstatus.com.br/v1/calls/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/calls/{callId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/calls/{callId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/calls/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cmc1x2y3z0000abcd1234efgh",
"externalCallId": "wacid.ABGG...",
"direction": "INBOUND",
"status": "RINGING",
"peerNumber": "5511999999999",
"sdpOffer": "v=0\r\n...",
"sdpAnswer": null,
"createdAt": "2026-07-03T15:00:00.000Z",
"updatedAt": "2026-07-03T15:00:00.000Z"
}Encabezados
Parámetros de ruta
Parámetros de consulta
Respuesta
Obtener llamada con SDP
¿Esta página le ayudó?
curl --request GET \
--url https://pilotstatus.com.br/v1/calls/{callId} \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/calls/{callId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/calls/{callId}', 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://pilotstatus.com.br/v1/calls/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/calls/{callId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/calls/{callId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/calls/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "cmc1x2y3z0000abcd1234efgh",
"externalCallId": "wacid.ABGG...",
"direction": "INBOUND",
"status": "RINGING",
"peerNumber": "5511999999999",
"sdpOffer": "v=0\r\n...",
"sdpAnswer": null,
"createdAt": "2026-07-03T15:00:00.000Z",
"updatedAt": "2026-07-03T15:00:00.000Z"
}