Historial de códigos de activación
Devuelve las solicitudes de código de la línea, de la más reciente a la más antigua, con los códigos: { "activations": [ … ] }. También funciona con líneas suspendidas: conservan su historial. Una línea de otro workspace responde 404 LINE_NOT_FOUND, nunca una lista vacía.
Una línea que salió de tu workspace (RETURNED o CANCELED) tiene su historial eliminado: sus solicitudes siguen listadas (id, status, marcas de tiempo, failureReason), pero code es null y hasAudio pasa a false a medida que se eliminan las grabaciones. Se envía con Cache-Control: no-store: los códigos son credenciales.
Requiere una clave con alcance de tenant: una clave con alcance de número (o un permiso OAuth por número) recibe 403 NUMBER_SCOPE_NOT_ALLOWED. Permiso phone_lines:read: con un token OAuth / MCP el usuario debe ser Owner o Admin (403 PERMISSION_DENIED en otro caso).
curl --request GET \
--url https://pilotstatus.com.br/v1/phone-lines/{id}/activations \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/{id}/activations"
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/phone-lines/{id}/activations', 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/phone-lines/{id}/activations",
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/phone-lines/{id}/activations"
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/phone-lines/{id}/activations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/{id}/activations")
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{
"activations": [
{
"id": "cmg5k3a7c0002ac8example4q",
"lineId": "cmg5k2l1n0001pl8example9x",
"status": "TRANSCRIBED",
"requestedAt": "2026-10-01T14:10:00.000Z",
"pollDeadline": "2026-10-01T14:15:00.000Z",
"code": "123456",
"capturedAt": "2026-10-01T14:11:42.000Z",
"transcribedAt": "2026-10-01T14:11:51.000Z",
"failureReason": null,
"hasAudio": true
},
{
"id": "cmg5j9x2b0001ac8example7m",
"lineId": "cmg5k2l1n0001pl8example9x",
"status": "TIMED_OUT",
"requestedAt": "2026-10-01T13:40:00.000Z",
"pollDeadline": "2026-10-01T13:45:00.000Z",
"code": null,
"capturedAt": null,
"transcribedAt": null,
"failureReason": "no_call_in_window",
"hasAudio": false
}
]
}Parámetros de ruta
Parámetros de consulta
¿Esta página le ayudó?
curl --request GET \
--url https://pilotstatus.com.br/v1/phone-lines/{id}/activations \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/{id}/activations"
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/phone-lines/{id}/activations', 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/phone-lines/{id}/activations",
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/phone-lines/{id}/activations"
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/phone-lines/{id}/activations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/{id}/activations")
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{
"activations": [
{
"id": "cmg5k3a7c0002ac8example4q",
"lineId": "cmg5k2l1n0001pl8example9x",
"status": "TRANSCRIBED",
"requestedAt": "2026-10-01T14:10:00.000Z",
"pollDeadline": "2026-10-01T14:15:00.000Z",
"code": "123456",
"capturedAt": "2026-10-01T14:11:42.000Z",
"transcribedAt": "2026-10-01T14:11:51.000Z",
"failureReason": null,
"hasAudio": true
},
{
"id": "cmg5j9x2b0001ac8example7m",
"lineId": "cmg5k2l1n0001pl8example9x",
"status": "TIMED_OUT",
"requestedAt": "2026-10-01T13:40:00.000Z",
"pollDeadline": "2026-10-01T13:45:00.000Z",
"code": null,
"capturedAt": null,
"transcribedAt": null,
"failureReason": "no_call_in_window",
"hasAudio": false
}
]
}