Search, purchase, and manage phone numbers (Growth tier and above)
Search available phone numbers
GET
https://api.relay.works
/v1/phone-numbers/available
Search for phone numbers available to purchase. Requires Growth tier or above.
Current Status: In non-production environments this endpoint returns deterministic mock data for integration testing. Production support via a carrier provider is pending.
query Parameters
area_codestringFilter by area code (e.g., "415")
containsstringSubstring match against candidate numbers
localitystringFilter by locality/region code (e.g., "CA")
Responses
Available phone numbers
numbersobject[]totalinteger
Purchase a phone number
POST
https://api.relay.works
/v1/phone-numbers/buy
Purchase a phone number for the workspace. Requires active subscription on Growth tier or higher.
Responses
Phone number purchased
idstring · uuidworkspace_idstring · uuidphone_numberstringExample: +15005550006providerstringExample: mockprovider_idstringcapabilitiesobjectmonthly_cost_centsintegercurrencystringExample: USDstatusstring · enumEnum values:activereleasedpendingcreated_atstring · date-timereleased_atstring | null · date-time
monthly_costnumber · float · deprecated · required