Skip to main content

Authentication

To start using the API, you will need to request an API key for your account. Only your Customer Success Manager can obtain this for you.

You can create as many API keys as you like, once a key is generated you must ensure it is kept safe as a lost key will require it to be removed and a new API key generated.

Authenticating a request

All endpoints of the reseller API require authentication via API key, please ensure you send your API key as a header named “api-key” with each request. Here’s a cURL example you can run in your command line which will start a Insites report running:

curl -X GET https://api.monitor.insites.com/v1/users -H "api-key: [YOUR API KEY]"
{
"data": [
{
"first_name": "Mike",
"last_name": "Glenn",
"email": "mikeglen@insites.com",
"avatar": null,
"language_preference": "en-GB",
"country_code": "GB",
"suspended_at": null,
"created_at": "2023-06-02T15:54:32+00:00",
"updated_at": null
}
],
"meta": {
"per_page": 20,
"from": 1,
"to": 1,
"current_page": 1,
"last_page": 1,
"total": 1,
"next_page_url": null,
"prev_page_url": null,
"first_page_url": "http://localhost:8000/v1/users?page=1",
"last_page_url": "http://localhost:8000/v1/users?page=1"
}
}