Page 1 of 1

Documents/DownloadSftp API

Posted: Thu Jan 30, 2025 11:25 am
by aearl23
I am on version 24.3.43 and I got this error:

Error in POST request to documents/DownloadSftp: OpenDental API error: 400 - "Error. This is most likely a version issue. The version that the customer is using might be too old to support the API method used."

The API specs tell me that the POST DownloadSftp method was added for 'Version Added: 21.2' yet I am getting this error.

Re: Documents/DownloadSftp API

Posted: Thu Jan 30, 2025 12:23 pm
by aearl23
Also, can I use a SSH key for authentication or does the API only support password authentication?

Re: Documents/DownloadSftp API

Posted: Thu Jan 30, 2025 12:29 pm
by justine
aearl23 wrote:
Thu Jan 30, 2025 11:25 am
I am on version 24.3.43 and I got this error:

Error in POST request to documents/DownloadSftp: OpenDental API error: 400 - "Error. This is most likely a version issue. The version that the customer is using might be too old to support the API method used."

The API specs tell me that the POST DownloadSftp method was added for 'Version Added: 21.2' yet I am getting this error.
aearl23 wrote:
Thu Jan 30, 2025 12:23 pm
Also, can I use a SSH key for authentication or does the API only support password authentication?
Hello aearl23,

POST documentsSftp requires that the user with the SFTP credentials must have write permissions. Does the user have write permissions?

Thanks!

Re: Documents/DownloadSftp API

Posted: Thu Jan 30, 2025 12:40 pm
by aearl23
Yes, the user has write permissions, but does the API support SSH authentication or only password?

Re: Documents/DownloadSftp API

Posted: Thu Jan 30, 2025 12:44 pm
by justine
aearl23 wrote:
Thu Jan 30, 2025 12:40 pm
Yes, the user has write permissions, but does the API support SSH authentication or only password?
Hello aearl23,

POST documents DownloadSftp documentation clearly states that SftpUsername and SftpPassword fields are required.

Thanks!