Authentication
The Engagement Hub API secures access to its resources through robust authentication mechanisms. Ensuring that your API interactions are authenticated is crucial for maintaining data integrity and security. This section outlines how to authenticate API requests.
Overview
Our API uses Basic Authentication. This method requires the API user to provide a valid username and password, which are encoded and included in the header of each request.
Basic Authentication
Basic Authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization
header that contains the word Basic
followed by a space and a base64-encoded string username:password
.
Encoding Credentials
To encode your credentials:
- Combine your username and password with a colon (
:
). For example, if your username isuser123
and your password issecurePassword
, the string should beuser123:securePassword
. - Encode the resulting string in base64. For example,
user123:securePassword
would be encoded asdXNlcjEyMzpzZWN1cmVQYXNzd29yZA==
.
Using Encoded Credentials
To make requests to the API, include the encoded credentials in the Authorization
header of each HTTP request like this:
Authorization: Basic dXNlcjEyMzpzZWN1cmVQYXNzd29yZA==