Thank you for the response! So basically, I'm using this standard gem https://rubygems.org/gems/rest-client/versions/1.6.9?locale=en Since you commented, I realized that I had an extra "/" in the endpoint. So to anyone stumbling on this thread, that's probably your answer. But now I'm getting a "400 Bad Request" error, with the same exact variables that I'm putting into my CURL request. I copied all of the parameters, and put them directly into my console: > opts = {:method=>:post, :payload=>{:smsConfiguration=>{:servicePlanId=>"{service_plan_id}"}, :regionCode=>"US", :type=>"LOCAL", :numberPattern=>{:pattern=>"206", :search Pattern=>:START}}, :url=>"https://numbers.api.sinch.com/v1/projects/{project_id}/availableNumbers:rentAny", :headers=>{}, :user=>"apikey", :password=>"secret"} According to their documentation, these opts should mimic the CURL request that I mentioned above. But when I put it into the console: > RestClient::Request.execute(opts) Traceback (most recent call last): 1: from (irb):37 RestClient::BadRequest (400 Bad Request) It's the same if I just request availableNumbers with the ":rentAny". I am very confused because it should work exactly the same vs using CURL.
... View more