Skip to main content
POST
Get a number from Eager

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Body

application/json
number
string
required

E.164, from for_sale.

Example:

"+14155550111"

agent_id
string

The agent that answers it.

Response

The number, on Eager.

One of the org's numbers on Eager. Calls to it are answered by its agent's published version, out loud, with its tools.

object
string
required
Allowed value: "phone_number"
id
string
required
Example:

"pn_3f9a0c1d2e4b5a6978c1d2e3"

number
string
required

E.164.

Example:

"+14155550123"

display
string
required
Example:

"(415) 555-0123"

agent_id
string | null
required

The agent that answers it; null: not answered.

Example:

"billing"

connection_id
string
required
status
enum<string>
required
Available options:
active,
released
created_at
string<date-time>
required
name
string | null

Its friendly name in Twilio (numbers from a connected account).

Example:

"Front desk"

connection_name
string | null
provided_by
enum<string>

eager: bought from Eager (charged a month at a time; removing it releases it). twilio: from one of the org’s connected Twilio accounts.

Available options:
eager,
twilio
type
enum<string>

From Eager only.

Available options:
local,
toll_free
country
string | null

From Eager only.

Example:

"US"

locality
string | null

From Eager only.

region
string | null

From Eager only.

price_cents_per_month
integer | null

From Eager only.

Example:

175

paid_through
string<date-time> | null

From Eager only: the end of the month it’s paid for. The next month is charged then.