API requests start with:
Authentication to the API is controlled using an access token. You may send your access token as a query param or HTTP header.
To send the token as a query param set the access_token value in the url.
To send as an HTTP header set the Authorization header.
Authorization: Bearer API-KEY
We recommend sending the token as an HTTP header for security reasons.
Your authentication access token can be found at http://bonus.ly/api
Making a request without an access token or with a bad access token will result in a 401 - bad or missing access token error. (The exception is the /sessions endpoint which is used to get a user's access token)
Your Application Name
You can set your application name by either setting the
HTTP_APPLICATION_NAME HTTP header or setting an
Setting the application name will set the
via property of every bonus created by that application to the application name.