To authenticate with Measurabl’s Core API, you will need an API key and secret that have been provided by Measurabl. Measurabl’s Core API is not a public/open API. The API key and secret act as credentials, ensuring secure access to your Measurabl data. API Credentials are provided only to Measurabl customers.
Core API Access/Bearer Token Retrieval
To authenticate, make a POST request with your key and secret '[username]:[password]' to https://api.measurabl.com/token.
An example cURL request for authentication:
curl -X POST -u [username]:[password] https://api.measurabl.com/token
An access_token will be provided along with its expiration. This token can be used to authenticate all calls to the Core API until its expiration.
Core API Swagger UI Authentication
Measurabl provides comprehensive and user-friendly API documentation through the utilization of Swagger.io, ensuring seamless integration and ease of use for developers.
To leverage Measurabl’s online documentation, press the 'Authorize' button on the right of the page. Enter your api key and secret and press 'Authorize'. An access token will be added to the header and the Core API can then be used. The token is valid for up to 24 hours. After 24 hours, authentication will again be required to retrieve a new access token.