API Usage Metrics
Counting metrics
Several payment plans are available depending on the business model. To offer fair pricing we will measure the API usage by:
- Number of API calls
- Database storage used
- File storage used
The API key in the request header is used to identify the client application behind the request.
Api calls
We count every call to the API equally. We don’t take into account neither the http method, the endpoint or the size of the request. Only calls that cause a http 500 internal server error are excluded from the count. We store the request count in a database table as a basis for analysis and billing.
File storage
File storage is counted per user and/or API key and may be limited depending on the plan selected. Files created and modified are counted. If an attachment is modified by multiple client applications, the file size is counted for all of them. The size being used for calculation is always the latest file.
Metrics can also be used to dynamically limit access to the API when a pre-defined amount of calls or storage is reached.