Phone Number Lookup
GEThttps://YOUR_SPACE.signalwire.com/api/relay/rest/lookup/phone_number/:e164_number
This endpoint allows you to look up validity and formatting information about a number. You can optionally lookup additional information about the number such as carrier and caller ID data.
Permissions
The API token must include the following scopes: Numbers.
Request
Responses
- 200
OK
Authorization: http
name: basic_authtype: httpscheme: basic
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://YOUR_SPACE.signalwire.com/api/relay/rest/lookup/phone_number/:e164_number");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear