Authentication
Generating an API Token and Retrieving the Sift API URL
Every request to the Sift API, whether using REST or gRPC, requires an API token for authentication. An example for REST and gRPC are as following:
The API URL depends on your provisioned environment and the chosen API type (REST or gRPC). Below are instructions on how to retrieve both your API token and URL.
Creating an API Token
Note: Certain parts of the images in this section are intentionally obfuscated.
Generate API tokens within Sift:
- From any page in Sift, click the top-right user icon and select
Manage
. - On the manage page, select
API Keys
in the left column. - You will be directed to the API key generation page, which should appear as follows:
- Complete the form by providing a name for your API key as well as your email:
- After submitting the form by pressing
Create API Key
, a modal will appear containing your API key. The API key will be located in the area indicated by the red box in the following image.
Storing Your API Token
Note that this will be the only time you will ever be able to see this API key. It is highly recommended that you place this key in a secret store of your choice.
Verifying Your API Token
You can test your newly generated key against the REST API using the curl
command from your commandline or the gRPC
API using grpcurl
.
Retrieving your Sift URL
Your Sift URL can be found in the manage page of the web-application in the same page as where you generated your API token:
gRPC URL Format
Note that if you are using the gRPC API, depending on the language and library, different formats may be expected. Click here to read more.