cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Search for available phone numbers with `numberPattern.searchPattern = START`

valentinpazushko
Contributor

I’m trying to find a specific American Toll-Free number using parameters `numberPattern.searchPattern = START` and `numberPattern.pattern = {fullNumber}`. For example +18336681151. As a result, I get an empty response. However, if I request American Toll-Free numbers without this filters, this number will be in the response.

4 REPLIES 4

Alex_Sberna
Employee
Employee

Hi, thanks for your question!

 

When you used the `numberPattern.pattern` did you URL encode the `+` sign? https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Available-Number/#tag/Available-...

This could account for why you did not get the number returned.
Thanks!

Alex Sberna, Documentation Engineer

Yes, of course

If I leave only these numbers '+1833669', the search works

 

Alex_Sberna
Employee
Employee

Hi, thanks for your patience.

I have done some further testing and I have run into the same behavior you are experiencing. Even if the number is available, it won't show up if I enter the entire number.

 

I will reach out to the engineering team and ask for more information about how this works and I will get back to you with an answer.

Alex Sberna, Documentation Engineer