Gather Gather Lines Sign in Get started

Endpoints

Numbers in stock

Pick a number we already hold, claim it, install its eSIM, and release it when you are done.

Besides ordering a line, you can take a number we already hold in stock. You see the actual numbers before you choose, the line is live as soon as you claim it, and there is no order to wait for. Each number is a real mobile line on a second US network, with its own eSIM.

NOTE Numbers in stock are in beta. Ask us to turn them on for your account. Which area codes are in stock changes as numbers are claimed, so we can't promise a particular one.

Every call needs a live key (gk_live_…). Sandbox keys and accounts still in review get 403 live_customer_required. Add a billing card in the portal (Billing) before you claim: the first month is charged to it when you claim a number. Numbers are digits only, with no + (14125550123).

List the numbers you can claim

GET /v1/gather/lines/number/catalog?is_assigned=false

Returns the numbers open to your account, newest first, as data and has_more. Page with limit (up to 100) and starting_after (the last id you got). Filter with number= for one number, or is_assigned=true to list the ones you have already claimed. Add customer_ref= to see only the ones you claimed for one of your end users.

{
  "data": [
    {
      "id": "6720a9f3c1d2e4b5a6f70812",
      "number": "14125550123",
      "is_assigned": false,
      "carrier_status": "active",
      "carrier_checked_at": "2026-10-27T08:00:00Z"
    }
  ],
  "has_more": false
}

Numbers someone else has claimed never show up. If we set some numbers aside for your account, they show up here for you only, with reserved_for set.

Claim a number

POST /v1/gather/lines/number/assign?number=14125550123
Content-Type: application/json

{ "customer_ref": "user_8812" }

customer_ref is your own reference for who the number is for, for example your end user's ID (up to 200 characters). The number becomes your line at once: it comes back with line_id, shows up in number/list, and you get a line.active webhook.

{
  "number": "14125550123",
  "is_assigned": true,
  "customer_ref": "user_8812",
  "assigned_at": "2026-10-27T08:01:47Z",
  "line_id": "ln_Sp6mgsLjUV3PlIJP"
}

Claiming is safe to retry: the same number with the same customer_ref returns the same claim and the same line, even if two retries race. A different number with the same customer_ref claims a second number, so pick the number once, store it, and retry with that number. A number that is already taken, or set aside for another account, returns 409 number_unavailable.

With no billing card on the account, a claim returns 402 billing_hold. If the card is declined, it returns 402 payment_declined and the number goes back to stock. Add or update the card in the portal and claim again.

Idempotency-Key is not needed here and is ignored.

Install the eSIM

GET /v1/gather/lines/esim/id?id={line_id}

The eSIM is read live from the network each time, so call it when you need it rather than storing it.

{
  "number": "14125550123",
  "iccid": "8901260000000000000",
  "qr_url": "https://…",
  "lpa_code": "LPA:1$smdp.example.net$K2-4Z7Q-19XVTP",
  "smdp_address": "smdp.example.net",
  "matching_id": "K2-4Z7Q-19XVTP",
  "status": ""
}

Show qr_url as a QR code, or use lpa_code for one-tap install on the phone. You can also read it by number: GET /v1/gather/lines/number/esim?number=14125550123&customer_ref=user_8812, which needs the same customer_ref you claimed with.

Caution. Treat the lpa_code like a password. Anyone who has it can install the line.

For these numbers status is always empty for now: we don't detect the install yet, so don't hide the QR code based on it.

Check a number

GET  /v1/gather/lines/number/status?number=14125550123
POST /v1/gather/lines/number/refresh?number=14125550123

status returns the number as we last saw it. refresh asks the network again and saves the result. Another account's number returns 404, as if it did not exist.

Reading the eSIM, refresh and releasing share one request per second per key. Over that you get 429 rate_limited: wait a second and retry.

Release a number

DELETE /v1/gather/lines/number/id?id={line_id}

Releases the line at once: 200 with state released, and a line.released webhook. The number is cancelled with the network straight away and its eSIM stops working. It does not come back to stock for anyone else. Asking again returns the released line.

WARNING Only release a number when its user is really gone. If you release one by mistake, tell us within 30 days and we can usually restore it.

Send and receive texts

Numbers in stock can send and receive SMS by API, and you get a message.received webhook for each text that comes in. See Messaging.

Pricing

$10 per number per month, from the day you claim it until you release it. The first month is charged to your billing card at claim, then monthly from the claim date. See Pricing.

1# Numbers in stock
2
3> Pick a number we already hold, claim it, install its eSIM, and release it when you are done.
4
5Besides [ordering a line](/docs/numbers#order-lines), you can take a number we already hold in
6stock. You see the actual numbers before you choose, the line is live as soon as you claim it, and
7there is no order to wait for. Each number is a real mobile line on a second US network, with its
8own eSIM.
9
10> **NOTE** Numbers in stock are in beta. Ask us to turn them on for your account. Which area codes
11> are in stock changes as numbers are claimed, so we can't promise a particular one.
12
13Every call needs a live key (`gk_live_…`). Sandbox keys and accounts still in review get
14`403 live_customer_required`. Add a billing card in the portal (Billing) before you claim: the
15first month is charged to it when you claim a number. Numbers are digits only, with no `+` (`14125550123`).
16
17## List the numbers you can claim
18
19```http
20GET /v1/gather/lines/number/catalog?is_assigned=false
21```
22
23Returns the numbers open to your account, newest first, as `data` and `has_more`. Page with
24`limit` (up to 100) and `starting_after` (the last `id` you got). Filter with `number=` for one
25number, or `is_assigned=true` to list the ones you have already claimed. Add `customer_ref=` to
26see only the ones you claimed for one of your end users.
27
28```json
29{
30 "data": [
31 {
32 "id": "6720a9f3c1d2e4b5a6f70812",
33 "number": "14125550123",
34 "is_assigned": false,
35 "carrier_status": "active",
36 "carrier_checked_at": "2026-10-27T08:00:00Z"
37 }
38 ],
39 "has_more": false
40}
41```
42
43Numbers someone else has claimed never show up. If we set some numbers aside for your account,
44they show up here for you only, with `reserved_for` set.
45
46## Claim a number
47
48```http
49POST /v1/gather/lines/number/assign?number=14125550123
50Content-Type: application/json
51
52{ "customer_ref": "user_8812" }
53```
54
55`customer_ref` is your own reference for who the number is for, for example your end user's ID
56(up to 200 characters). The number becomes your line at once: it comes back with `line_id`, shows
57up in [`number/list`](/docs/numbers), and you get a `line.active` [webhook](/docs/webhooks).
58
59```json
60{
61 "number": "14125550123",
62 "is_assigned": true,
63 "customer_ref": "user_8812",
64 "assigned_at": "2026-10-27T08:01:47Z",
65 "line_id": "ln_Sp6mgsLjUV3PlIJP"
66}
67```
68
69Claiming is safe to retry: the same number with the same `customer_ref` returns the same claim and
70the same line, even if two retries race. A different number with the same `customer_ref` claims a
71second number, so pick the number once, store it, and retry with that number. A number that is
72already taken, or set aside for another account, returns `409 number_unavailable`.
73
74With no billing card on the account, a claim returns `402 billing_hold`. If the card is declined,
75it returns `402 payment_declined` and the number goes back to stock. Add or update the card in the
76portal and claim again.
77
78`Idempotency-Key` is not needed here and is ignored.
79
80## Install the eSIM
81
82```http
83GET /v1/gather/lines/esim/id?id={line_id}
84```
85
86The eSIM is read live from the network each time, so call it when you need it rather than storing
87it.
88
89```json
90{
91 "number": "14125550123",
92 "iccid": "8901260000000000000",
93 "qr_url": "https://…",
94 "lpa_code": "LPA:1$smdp.example.net$K2-4Z7Q-19XVTP",
95 "smdp_address": "smdp.example.net",
96 "matching_id": "K2-4Z7Q-19XVTP",
97 "status": ""
98}
99```
100
101Show `qr_url` as a QR code, or use `lpa_code` for one-tap install on the phone. You can also read
102it by number: `GET /v1/gather/lines/number/esim?number=14125550123&customer_ref=user_8812`, which
103needs the same `customer_ref` you claimed with.
104
105> **CAUTION** Treat the `lpa_code` like a password. Anyone who has it can install the line.
106
107For these numbers `status` is always empty for now: we don't detect the install yet, so don't hide
108the QR code based on it.
109
110## Check a number
111
112```http
113GET /v1/gather/lines/number/status?number=14125550123
114POST /v1/gather/lines/number/refresh?number=14125550123
115```
116
117`status` returns the number as we last saw it. `refresh` asks the network again and saves the
118result. Another account's number returns `404`, as if it did not exist.
119
120Reading the eSIM, `refresh` and releasing share one request per second per key. Over that you get
121`429 rate_limited`: wait a second and retry.
122
123## Release a number
124
125```http
126DELETE /v1/gather/lines/number/id?id={line_id}
127```
128
129Releases the line at once: `200` with `state` `released`, and a `line.released` webhook. The number
130is cancelled with the network straight away and its eSIM stops working. It does not come back to
131stock for anyone else. Asking again returns the released line.
132
133> **WARNING** Only release a number when its user is really gone. If you release one by mistake,
134> tell us within 30 days and we can usually restore it.
135
136## Send and receive texts
137
138Numbers in stock can send and receive SMS by API, and you get a `message.received` webhook for
139each text that comes in. See [Messaging](/docs/messaging).
140
141## Pricing
142
143$10 per number per month, from the day you claim it until you release it. The first month is
144charged to your billing card at claim, then monthly from the claim date. See
145[Pricing](/docs/pricing).
146
$ curl -s https://lines.gatherat.ai/docs/numbers-stock.md
200 OK · text/markdown; charset=utf-8 · 5,240 bytes
# Numbers in stock > Pick a number we already hold, claim it, install its eSIM, and release it when you are done. Besides [ordering a line](/docs/numbers#order-lines), you can take a number we already hold in stock. You see the actual numbers before you choose, the line is live as soon as you claim it, and there is no order to wait for. Each number is a real mobile line on a second US network, with its own eSIM. > **NOTE** Numbers in stock are in beta. Ask us to turn them on for your account. Which area codes > are in stock changes as numbers are claimed, so we can't promise a particular one. Every call needs a live key (`gk_live_…`). Sandbox keys and accounts still in review get `403 live_customer_required`. Add a billing card in the portal (Billing) before you claim: the …