API - Authorization

The API is meant for developers who want to connect their application with eHour. 


To connect with eHour's API you will first need to create an API key. You can create or retrieve your API key by navigating to External Integration and click Generate when there is no API key.

You can have only one API key which has admin powers. You can create clients, projects, users, etc. with the API key. Please keep it safe!

Add your API key as an X-API-Key HTTP header to every HTTP request.

For example, replace [APIKEY] in the following curl call to retrieve all your clients:

curl -X GET --header 'X-API-Key: [APIKEY]' 'https://ehourapp.com/api/v1/clients'

When the API key is unknown or invalid the API responds with a 401 status code

Feedback and Knowledge Base