API Command throttling

  • 1
  • Problem
  • Updated 2 months ago
Hello!

I am using the C# ShareFile SDK to provide a file sharing interface to our customers.  Due to security concerns I was unable to use webhooks to receive notification of file uploads.  Instead I use Advanced Simple Search (https://account.sf-api.com/sf/v3/Items/AdvancedSimpleSearch) and a moving creation date parameter to find files that have been uploaded.  I have found that Advanced Simple Search will often omit uploads in the date range specified.  This coupled with the need for near real time transport to our system creates a lot of web calls.  I believe our API calls for our site are being throttled, can I ask what the throttling limit for API calls is?  I have a ticket in with technical support if you would like to reference: 78134047.

Thanks!

TLDR
I believe our API calls for our site are being throttled, can I ask what the throttling limit for API calls is?
Photo of Adam Weisner

Adam Weisner

  • 3 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Robert Jakubowski

Robert Jakubowski

  • 5 Posts
  • 1 Reply Like
Hi Adam,

It is expected to experience a delay between uploading a file and seeing the file in the search API results. Normally the delay is several seconds but occasionally it can extend to a couple of minutes. Please let us know if you are seeing a longer delay.

As far as throttling in general, the maximum rate depends on various internal factors, and when the throttling gets enforced for a given API endpoint, the API returns status code 429/too-many-requests. See https://api.sharefile.com/rest/guides/troubleshooting.aspx for more details.

In general it is recommended to use webhooks for this kind of use cases instead of polling. To address security concerns we do sign webhook calls (see "Webhook Signatures" @ https://api.sharefile.com/rest/webhooks/payloads.aspx)

Thanks,
Robert