asms

v1.1.0
ai.asms/asms Checked 2 days ago Published 1 month ago

Phone numbers for AI agents: SMS verification codes and rented numbers that receive SMS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_balance Wallet balance

Get the current wallet balance for the authenticated account.

get_pricing Verification code prices

Get the retail price per OTP activation for a service in a country. Omit `service` to list prices for every available service.

ParameterTypeDescription
country *stringNumber pool to order from: "us1" = Non-VoIP AT&T (real carrier line, for strict services like WhatsApp/Telegram/Google), "us" = VoIP High Quality (lowest price, works for most signups), "uk" = United…
servicestringService slug to receive the OTP for (e.g. "google", "telegram", "whatsapp").

get_inventory Verification number stock

Get how many numbers are in stock for a service in a country. Omit `service` to list stock for every available service.

ParameterTypeDescription
country *stringNumber pool to order from: "us1" = Non-VoIP AT&T (real carrier line, for strict services like WhatsApp/Telegram/Google), "us" = VoIP High Quality (lowest price, works for most signups), "uk" = United…
servicestringService slug to receive the OTP for (e.g. "google", "telegram", "whatsapp").

create_otp_order Order a verification number

Buy a number to receive an OTP: allocates a number, debits the wallet, and returns an orderId + phoneNumber. Then poll with poll_sms. If no code arrives, do NOT cancel to retry: simply call create_otp_order again for a fresh number and keep polling that one. Unfilled orders auto-refund within 10 minutes, so you only pay for codes that actually land and there is no penalty for ordering repeatedly. When a service keeps rejecting codes, order on the "us1" (Non-VoIP AT&T) pool, which has the highest delivery rate. WARNING: this spends real wallet balance.

ParameterTypeDescription
country *stringNumber pool to order from: "us1" = Non-VoIP AT&T (real carrier line, for strict services like WhatsApp/Telegram/Google), "us" = VoIP High Quality (lowest price, works for most signups), "uk" = United…
service *stringService slug to receive the OTP for (e.g. "google", "telegram", "whatsapp").

poll_sms Check for the verification code

Check for the SMS / OTP code on an order. Returns the code once it has arrived, otherwise an empty result: poll again after a few seconds. If nothing lands after a minute or two, the fastest path is to order a fresh number with create_otp_order (prefer the "us1" Non-VoIP pool) and leave the original: it auto-refunds within 10 minutes. Never cancel just to retry, and there is no charge for ordering again, you only pay for codes that arrive.

ParameterTypeDescription
orderId *stringThe orderId from create_otp_order.

list_active_orders List verification orders

List recent OTP orders for the account (awaiting a code or already received).

ParameterTypeDescription
limitnumberMax orders to return (default 50, max 1000).

cancel_order Cancel a verification order

Rarely needed. To retry a verification do NOT cancel: just call create_otp_order again, because every unfilled order auto-refunds within 10 minutes on its own, and cancel is blocked for the first 10 minutes anyway. Only use this to release an order you are certain you no longer need once its 10-minute hold has passed.

ParameterTypeDescription
orderId *stringThe orderId from create_otp_order.

get_rental_offers Number rental prices

List the rental periods and prices for a country (1 day to 12 months). A rented number is yours for the whole period and receives every SMS sent to it, unlike an OTP order, which is for one code. Omit `country` to list the countries numbers can be rented in.

ParameterTypeDescription
countrystringCountry to rent a number in: "us" (United States), "uk" (United Kingdom), "ca" (Canada), "au" (Australia), "es" (Spain), "se" (Sweden), "de" (Germany), "nl" (Netherlands), "it" (Italy), "pl" (Poland),…

rent_number Rent a phone number

Rent a phone number in a country for a period (get the periods and prices from get_rental_offers first). Debits the wallet and returns the number and when the rental ends. Read its SMS with read_rental_sms. WARNING: this spends real wallet balance; confirm the country, period and price with the user first.

ParameterTypeDescription
country *stringCountry to rent a number in: "us" (United States), "uk" (United Kingdom), "ca" (Canada), "au" (Australia), "es" (Spain), "se" (Sweden), "de" (Germany), "nl" (Netherlands), "it" (Italy), "pl" (Poland),…
period *stringRental period: "oneDay" (1 day), "oneWeek" (1 week), "oneMonth" (1 month), "threeMonths" (3 months), "sixMonths" (6 months), "twelveMonths" (12 months). Not every period is on sale in every country: c…

list_rentals List rented numbers

List the account's rented numbers with their country, period, end date and whether auto-renew is on. Ended rentals are left out unless `includeEnded` is true.

ParameterTypeDescription
includeEndedbooleanAlso list rentals that have ended (default false).

read_rental_sms Read a rented number's SMS

Read the SMS a rented number has received during this rental, newest first. Poll again every few seconds while waiting for a message.

ParameterTypeDescription
number *stringThe rented number, as rent_number or list_rentals gave it ("+", spaces and dashes are ignored).

cancel_rental Cancel a rental for a refund

Cancel a rented number and refund it. Only possible between 5 and 120 minutes after renting, and only if the number has received no SMS; after that the rental runs to its end date.

ParameterTypeDescription
number *stringThe rented number, as rent_number or list_rentals gave it ("+", spaces and dashes are ignored).

renew_rental Renew a rented number

Keep a rented number for another period: the period is added to its current end, at today's price for that period in its country (see get_rental_offers). Possible from 2 hours after renting until 20 minutes before the end. Debits the wallet only if the renewal goes through. WARNING: this spends real wallet balance; confirm the number, period and price with the user first.

ParameterTypeDescription
number *stringThe rented number, as rent_number or list_rentals gave it ("+", spaces and dashes are ignored).
period *stringRental period: "oneDay" (1 day), "oneWeek" (1 week), "oneMonth" (1 month), "threeMonths" (3 months), "sixMonths" (6 months), "twelveMonths" (12 months). Not every period is on sale in every country: c…

set_rental_auto_renew Turn a rental's auto-renew on or off

With auto-renew on, the number is renewed for its rental period from the wallet a day before it ends (6 hours before for a one-day rental); if the balance is short then, the account is emailed and nothing is charged. Turning it on lets the wallet be charged later: confirm with the user first.

ParameterTypeDescription
autoRenew *booleantrue to turn auto-renew on, false to turn it off.
number *stringThe rented number, as rent_number or list_rentals gave it ("+", spaces and dashes are ignored).