The “baseUrl” and other placeholder variables
The documentation shall refer to the beginning of the address asbaseUrl. This is the domain name (with any subdomains). The baseUrl shall remain the same across all APIs for the given context (production or staging).
The baseUrl for Production is https://eazyowl.com .
The expression {{baseUrl}} in the API documentation shall denote that the actual URL be placed there.
Similarly, other placeholder variables shall also be denoted per API and are intended to be replaced with actual values e.g. {{baseUrl}}/api/v1/customers/{{externalUserId}}/status would require you to replace both baseUrl and externalUserId placeholders with real values. For example, a possible valid URL upon replacement of both the placeholders could be: https://eazyowl.com/api/v1/customers/vaibkaus/status .
NOTE: The placeholders might also show up in the request and response bodies in this documentation. However, you should not expect to see them in real API responses and should never use them in your requests.
Common Headers in all Requests
There are some common headers that you must supply in all your API calls. They are not individually mentioned in the API documentation. We assume that they will be present in the request though.- The
Content-Typefor all APIs isapplication/json. This is true for both the requests and the responses. For responses, you might also get the value set toapplication/json;charset=utf-8. For requests, we always process the content with UTF-8 encoding. - All APIs expect a
X-API-Keyheader key with the API key string as the value. The information about obtaining the same is in the API Authentication page. - We expect you to supply the
Hostheader containing the value of the domain name from the{{baseUrl}}value. e.g.eazyowl.com. - Responses can carry an
x-request-idheader which should be unique for every request made. This can later be used for debugging purposes. - Responses can also carry headers that control caching on the client side.