Skip to main content
GET
/
v1
/
inbound
List Inbound Numbers
curl --request GET \
  --url https://app.luly.ai/api/v1/inbound \
  --header 'authorization: <authorization>'
import requests

url = "https://app.luly.ai/api/v1/inbound"

headers = {"authorization": "<authorization>"}

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

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

fetch('https://app.luly.ai/api/v1/inbound', 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://app.luly.ai/api/v1/inbound",
  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: <authorization>"
  ],
]);

$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://app.luly.ai/api/v1/inbound"

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

	req.Header.Add("authorization", "<authorization>")

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

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

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://app.luly.ai/api/v1/inbound")
  .header("authorization", "<authorization>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://app.luly.ai/api/v1/inbound")

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

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

response = http.request(request)
puts response.read_body
{
    "inbound_numbers": [
        {
            "created_at": "2023-11-27T17:21:38.33359+00:00",
            "phone_number": "+18005551234",
            "prompt": "When you receive a call, recite a random poem from 'Sunset Boulevard' and then ask, 'How may I assist you in your poetic journey today?'",
            "webhook": "https://api.example.com/poetry-line",
            "voice_id": 2,
            "dynamic_data": [/* Use [Dynamic Data](/api-reference/endpoint/dynamic_validate) to make API requests mid-call */],
            "interruption_threshold": null,
            "first_sentence": null,
            "reduce_latency": true,
            "transfer_phone_number": null,
            "voice_settings": null,
            "record": false,
            "max_duration": 30
        },
        {
            "created_at": "2023-11-25T21:42:22.325993+00:00",
            "phone_number": "+18005559876",
            "prompt": "Answer with 'You've reached the Secret Society of Enigmatic Enthusiasts. Please state the password or leave a message after the beep.'",
            "webhook": "https://mysteryclub.example.com/inbound-call-hook",
            "voice_id": 1,
            "dynamic_data": null,
            "interruption_threshold": null,
            "first_sentence": null,
            "reduce_latency": true,
            "transfer_phone_number": null,
            "voice_settings": null,
            "record": false,
            "max_duration": 30
        },
        //...
    ]
}


Headers

authorization
string
required
Your API key for authentication.
encrypted_key
string
Use your own Twilio account and only return inbound numbers associated with that account sid (optional)

Response

inbound_numbers
array
An array of objects, each representing an inbound phone number and its configuration.
{
    "inbound_numbers": [
        {
            "created_at": "2023-11-27T17:21:38.33359+00:00",
            "phone_number": "+18005551234",
            "prompt": "When you receive a call, recite a random poem from 'Sunset Boulevard' and then ask, 'How may I assist you in your poetic journey today?'",
            "webhook": "https://api.example.com/poetry-line",
            "voice_id": 2,
            "dynamic_data": [/* Use [Dynamic Data](/api-reference/endpoint/dynamic_validate) to make API requests mid-call */],
            "interruption_threshold": null,
            "first_sentence": null,
            "reduce_latency": true,
            "transfer_phone_number": null,
            "voice_settings": null,
            "record": false,
            "max_duration": 30
        },
        {
            "created_at": "2023-11-25T21:42:22.325993+00:00",
            "phone_number": "+18005559876",
            "prompt": "Answer with 'You've reached the Secret Society of Enigmatic Enthusiasts. Please state the password or leave a message after the beep.'",
            "webhook": "https://mysteryclub.example.com/inbound-call-hook",
            "voice_id": 1,
            "dynamic_data": null,
            "interruption_threshold": null,
            "first_sentence": null,
            "reduce_latency": true,
            "transfer_phone_number": null,
            "voice_settings": null,
            "record": false,
            "max_duration": 30
        },
        //...
    ]
}