Using the Enzoic API

The Enzoic APIs are implemented as a series of RESTful web services with JSON payloads. All APIs must be accessed via HTTPS and require authentication. You can request a trial API key.

As is standard for REST APIs, API call parameters for GET requests are submitted in the query string for GET requests. For POST requests, parameters are submitted in the body as a JSON payload. The Content-Type header should always be set to application/json.

The API endpoint is:

https://api.enzoic.com/v1/{service}

API Authentication

All API endpoints require an HTTP basic authentication header. Your API Key is the username and your API Secret is the password portion of the header. The authentication header value is constructed in the standard fashion:

authorization: basic Base64Encode({Your API Key}:{Your Secret})

So, for example, if your API Key is b38f5a609f01442fb8ceb1aa02474903 and your Secret is 8e8a185dfa3e437f85afba165ce407b4, the resultant authentication header would be

authorization: basic YjM4ZjVhNjA5ZjAxNDQyZmI4Y2ViMWFhMDI0NzQ5MDM6OGU4YTE4NWRmYTNlNDM3Zjg1YWZiYTE2NWNlNDA3YjQ=

API Responses

Enzoic uses HTTP status codes to indicate success/failure conditions for API calls. Below is a listing of the response codes used for all Enzoic API calls along with their meaning.

Individual API calls may have additional response codes listed in the documentation for that call.

Firewall IP Whitelist

If your firewall requires explicit rules for outbound traffic on port 443, please whitelist the following IP addresses:

Proxy

There isn’t a facility for specifically setting an HTTP proxy in our Client Libraries, but this can be done via command line parameters. For example : https://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html

Last updated