Add an API key or access token to a request header
If you do not have a subdomain, you must include an API key or an access token in every request header.
Add an API key to a request header
To pass the API key in the header when you make a GET request to the Discover search and recommendation API:
-
Use the following code sample.
RequestResponse
curl -X GET \
'https://api.rfksrv.com/search-rec/<ckey>/3?data={"content":{}}' \
-H 'Authorization: <api-key>'Add an access token to a request header
To pass the access token in the header when you make a GET request to the Discover search and recommendation API:
-
Use the following code sample.
RequestResponse
curl -X GET \
'https://api.rfksrv.com/search-rec/<ckey>/3?data={"content":{}}' \
-H 'Authorization: Bearer <access-token>'