[#1154] Webhooks for client updates

Migrated from Redmine #1154 | Author: Mark Duchesne
Status: New | Priority: High, I’m very impatient | Created: 2024-02-01


Hi,

I hope you’re doing well!

We just finished setting up our application that uses your API. Your API has a limit of 5000 request per day, which isn’t sufficient to gather all the information we need per day. We use webhooks for bookings, but you don’t seem to offer webhooks for client update requests. Is this correct ? We use the API to gather changes made to clients and pass it to other applications we use.

Thing is, we don’t actually need these 5000 api calls per day, we do them to query each clients at specific interval (using a cronjob) to see if they were updated. If we could use webhooks, we would send the information on a single unit basis. If there was such a change (offering webhooks for client updates), we would need approximately 500 api calls on a daily basis instead of going over your daily threshold every single day.

I’ll be waiting for your feedback. Thanks!

Thanks!

James Hilton-Barber wrote:

Hi, I have the same issue. Going to have to resort to polling if the webhooks aren’t improved. Do you get triggers for client cancellation, for example? I only get triggers for bookings created or cancelled via the simplybook frontend site.

Mark Duchesne wrote:

Hi ! Can anyone help on this ? Seems like I’m not the only one with this question.

Redmine Admin wrote:

hi, please make sure you are reusing access token and not generating a new one before each call.

Mark Duchesne wrote:

Redmine Admin wrote:

hi, please make sure you are reusing access token and not generating a new one before each call.

Thanks for your reply!

What is the expiration time of the token? We’ll update our application accordingly.

Your answer seem to suggest that it is not possible to use webhooks to update customer information and that only reusing the token has the potential to reduce our number of requests. Is that correct?

Thanks again!

Redmine Admin wrote:

What is the expiration time of the token
up to 30 minutes, but better to check response status because this value can be changed in future

Your answer seem to suggest that it is not possible to use webhooks to update customer information and that only reusing the token has the potential to reduce our number of requests. Is that correct?

yes

Mark Duchesne wrote:

Redmine Admin wrote:

What is the expiration time of the token
up to 30 minutes, but better to check response status because this value can be changed in future

Your answer seem to suggest that it is not possible to use webhooks to update customer information and that only reusing the token has the potential to reduce our number of requests. Is that correct?

yes

Is there a way to get a count of our API calls and/or know what counts toward our 5000 API requests? Our cronjob places an API request each 5 minutes to get 100 clients and we went over the 5000 API call threshold again and the day is not close to being over.

Thanks!

Mark Duchesne wrote:

Mark Duchesne wrote:

Redmine Admin wrote:

What is the expiration time of the token
up to 30 minutes, but better to check response status because this value can be changed in future

Your answer seem to suggest that it is not possible to use webhooks to update customer information and that only reusing the token has the potential to reduce our number of requests. Is that correct?

yes

Is there a way to get a count of our API calls and/or know what counts toward our 5000 API requests? Our cronjob places an API request each 5 minutes to get 100 clients and we went over the 5000 API call threshold again and the day is not close to being over.

It would be so much better if we could have access to webhooks. Is this coming anytime soon? We can’t have our application go over the limit every single day and have client information and booking information missing.

Thanks!

Mark Duchesne wrote:

Mark Duchesne wrote:

Mark Duchesne wrote:

Redmine Admin wrote:

What is the expiration time of the token
up to 30 minutes, but better to check response status because this value can be changed in future

Your answer seem to suggest that it is not possible to use webhooks to update customer information and that only reusing the token has the potential to reduce our number of requests. Is that correct?

yes

Is there a way to get a count of our API calls and/or know what counts toward our 5000 API requests? Our cronjob places an API request each 5 minutes to get 100 clients and we went over the 5000 API call threshold again and the day is not close to being over.

It would be so much better if we could have access to webhooks. Is this coming anytime soon? We can’t have our application go over the limit every single day and have client information and booking information missing.

Thanks!

Also, what is your system timezone? Is it UTC? We would like to know when the quota will be reset daily so we can adjust our request accordingly.