The platform API empowers developers to automate, extend and combine Heroku with other services.You can use the platform API to programmatically create apps, provision add-ons and perform other tasks that could previously only be accomplished with Heroku toolbelt or dashboard.
You can also query the rate limit endpoint to get your token count.
Requests to the rate limit endpoint do not count toward the limit.
If you find your account is being rate limited but don’t know the cause, consider cycling your API key on the account page on Heroku dashboard.
HTTP bearer authentication must be constructed using an API token, passed as the Authorization header for each request, for example header to facilitate tracking and debugging.
The Platform API supports cross-origin resource sharing (CORS) so that requests can be sent from browsers using Java Script served from any domain.
The API has a machine-readable JSON schema that describes what resources are available via the API, what their URLs are, how they are represented and what operations they support. If the resource has not changed, the request will proceed normally. Values that can be provided for an action are divided between optional and required values.Failing responses will have an appropriate status and a JSON body containing more details about a particular error. The expected type for each value is specified and unlisted values should be considered immutable.Parameters should be JSON encoded and passed in the request body.List requests will return a The API limits the number of requests each user can make per hour to protect against abuse and buggy code.Each account has a pool of request tokens that can hold at most 2400 tokens. Tokens are added to the account pool at a rate of roughly 20 per minute (or 1200 per hour), up to a maximum of 2400.If no tokens remain, further calls will return 429 response header to check your current token count.