question

Dmitry Sorokin avatar image
Dmitry Sorokin asked ·

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

apifax apitax
1 |1000 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

· Write an Answer
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·
Share
1 |1000 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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