question

Dmitry Sorokin avatar image
Dmitry Sorokin asked Anirban answered

Bad request on sending curl

Hi. I've tried to send fax via sandbox here https://developers.ringcentral.com/api-reference/Fax/createFaxMessage

It was ok, response code 200

The I tried the curl text which was displayed near this method and it return message "Bad request". Here is curl:


curl --request POST --url 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/fax' --header 'accept: application/json' --header 'authorization: Bearer <mykey> '' --header 'content-type: multipart/form-data' --data '{"attachment":"data:text/plain;name=test.txt;base64,VGVzdCBtZXNzYWdl","to":["12013510654"]}'

Tried to send sms via curl and I succeeded. Seems like I have issues only with fax endpoint

sdk
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anirban avatar image
Anirban answered
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys