Authentication

Comprehensive information about the process of authentication to CoinAPI EMS APIs.

Authentication

In this section, you will find comprehensive information about the process of CoinAPI authentication. It covers the fundamental aspects and procedures involved in obtaining authentication for CoinAPI usage. Whether you are new to CoinAPI or seeking to enhance your understanding of the authentication process, this section will provide you with a valuable overview of the topic.

There are different types of authentication methods available to secure and control access to its services.

  • API Key - fundamental method of authentication that involves the usage of an API key for authentication and access control.

The console shows a key as abk_, 32 hex characters and an 8 hex character checksum, for example abk_3f25..... Letter case does not matter. Send the value from the console. Keys that were already in use also still authenticate when sent as a GUID. A value that starts with abk_ but has a wrong checksum is rejected.

Authentication methods supported by the API

Here's an overview of the various products offered by CoinAPI and the supported authentication methods for each product. To use resources that require authorized access, you will need to use one of the many authentication methods described below.

Product nameAPIX-CoinAPI-Key headerQuery paramTLS Client CertSenderCompID
EMSManaged Cloud REST✅✅❌❌
EMSREST✅✅✅❌
EMSWS✅✅✅❌
EMSFIX❌❌✅✅

X-CoinAPI-Key header

You can authorize by providing an additional custom header named X-CoinAPI-Key and API key as its value.

Assuming that your API key is abk_3f25...., then the authentication header you should send to us will look like:

X-CoinAPI-Key: abk_3f25....

Query string parameter (apikey)

You can authorize by providing an additional parameter named apikey with a value equal to your API key in the query string of your HTTP request.

Assuming that your API key is abk_3f25.... and that you want to request all exchange rates from BTC asset, then your query string should look like this: GET /v1/exchangerate/BTC?apikey=abk_3f25....

[!WARNING]

The Query string method may be more practical for development activities.

TLS Client Cert

TLS Client Certificate acquired from the Managed Cloud REST API (/v1/certificate/pem endpoint) provided while establishing a TLS session with us.

SenderCompID

This method of authentication is FIX protocol-specific. The exact message that needs to be sent to us will be described in the documentation of the specific API protocol Logon (35=A) message page.