REST Documentation
The MachineMetrics REST APIs are a set of endpoints that can be used for generating historical reports, downloading CSVs of those results, and pushing data into MachineMetrics from other systems like ERPs.
Authentication
- HTTP: Bearer Auth
- API Key: jwtAuth
The standard way to authenticate with the MachineMetrics API is via access tokens.
Access tokens will authenticate your application for a given set of scopes.
The following cURL request is an example of HTTP Authorization header authentication using your API key:
curl -H "Authorization: Bearer API-KEY" https://api.machinemetrics.com
To create an API key, login to MachineMetrics and go to <https://app.machinemetrics.com/app/settings/api-keys>.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
JSON Web Tokens, or JWTs, are used as an additional layer of security to authenticate various requests.
The following request is an example of JWT authentication using your token as a query parameter:
<https://api.machinemetrics.com?token=\{\{JWT\}\}>
See our warehouse report CSV operations for some examples of use cases.
Security Scheme Type: | apiKey |
|---|---|
Query parameter name: | token |