Too Many Requests

You have exceeded your usage limits

Purple gradient wave Purple wave used to give a visual break between the header and body of the page.

Summary

Requests to the API are rate limited in order to limit any potential abuse and ensure responsiveness. This error code is returned when too many requests have been made within the allotted time.

The response will send a header, `Retry-After`, indicating how long, in minutes, you must wait before your limit resets and you can reissue your request.

curl -iH "Authorization: ApiKey {ApiKey}" https://api.youmanage.co.uk/Companies

HTTP/1.1 429 Too Many Requests
Retry-After: 1
Date: Fri, 30 Aug 2019 09:11:52 GMT

{
  "Error": {
    "Code": "YM0053",
    "Reference": "https://developer.youmanage.co.uk/api/errors/ym0053",
    "Target": "Api",
    "Message": "You have reached your limit of 15 calls per 1m",
    "Details": null
  }
}

For more information see our guide on Rate Limiting.

   

Solution

Ensure your requests are spread over the required time frame for the number being sent.