1
Get your API key
If you have the Admin role, you can create your own API key inside Honestly. In your account settings, open API keys, choose Create API key, and give the key a descriptive name. The key value is shown only once, right after you create it — copy it immediately and store it somewhere safe, because you will not be able to view it again later.Store the key as an environment variable rather than pasting it directly into your scripts:You can then reference
The API keys page requires the API Access (Business Intelligence) add-on. If your account does not have it, the menu item does not appear at all — in that case, email service@honestly.com to have access enabled.
$HONESTLY_API_KEY in all subsequent requests, keeping the key out of your source code and version history.2
Make your first request
With your key in hand, call the surveys endpoint to retrieve the list of surveys in your account:A successful response will look similar to this:The
total_count field tells you the total number of surveys in your account, regardless of how many were returned in this page.3
Paginate through results
All list endpoints use offset-based pagination controlled by two query parameters:To determine when you have reached the last page, compare the current
limit— the maximum number of records to return per page (e.g.100)offset— the number of records to skip before returning results (e.g.100to start at the second page)
offset plus the number of records returned in the response against the total_count value. When offset + count >= total_count, you have retrieved all available records.4
Export employees and responses
The same request pattern — authenticate with
X-Api-Key, paginate with limit and offset — works across all Export API resources:Refer to the API Reference section for full parameter details, filtering options, and response schemas for each endpoint.