"message" : "Parameter [to] value is invalid" in curl fax

  • 1
  • Question
  • Updated 1 month ago
When I attempt to curl with:

 curl -i "https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/fax";  -H "Accept: application/json"  -H  "Authorization: Bearer SU...truncated......UE" -F "request={\"faxResolution\":\"High\",\"to\":[{\"phoneNumber\":\"+1...tendigitnumber\"}]}" -F "attachment=@/Users/akim/Desktop/FaxTest.pdf;type=application/pdf"
RingCentral returns the following error:

{

  "errorCode" : "InvalidParameter",

  "message" : "Parameter [to] value is invalid",

  "errors" : [ {

    "errorCode" : "CMN-101",

    "message" : "Parameter [to] value is invalid",

    "parameterName" : "to"

  } ],

  "parameterName" : "to"

}

How can I correct that InvalidParameter error?

Photo of Alan Kimelman MD

Alan Kimelman MD

  • 70 Points

Posted 1 month ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 8,152 Points 5k badge 2x thumb