Authenticate a Sitecore Send API request
All Sitecore Send API requests are authenticated by providing your API key. Sitecore Send provides your account with a unique key that can be found in your settings.
To get your API key:
-
Log in to your account.
-
On the menu bar, click More > Settings.
-
Click API key.
-
To copy your API key, click Copy.
ImportantYou must keep your API key secure to prevent any unauthorized access to your account. You can click Generate new API key to create a new API key if your account gets compromised.
When you obtain your API key, you can begin making calls to the Sitecore Send API. The API key is a required query parameter in all API endpoints.
For example, if your API key is bafe55f4-e53e-4651-8164-c6d6ff05081b
, then a sample request to get all campaigns looks like the following:
curl --include \
'https://{hostname}/v3/campaigns.{Format}?apikey=bafe55f4-e53e-4651-8164-c6d6ff05081b'