Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

API Keys are unique alphanumeric strings or tokens that are used to authenticate and authorize access to the Search API.

Why use an API Key:

  1. Authentication: API keys serve as a form of identification for applications or users accessing an API. By including the API key in API requests, the API can verify the identity of the requester and ensure that only authorized applications or users can access its resources.

  2. Authorization: API keys also play a role in authorization, determining what actions or resources the requester is allowed to access. The API key may be associated with certain permissions or roles that define the level of access and functionality available to the requester.

  3. Security: API keys enhance the security of an API by preventing unauthorized access. With a unique API key, the API provider can track and monitor API usage, enforce usage limits, and implement security measures such as rate limiting, throttling, and access control.

  4. Usage Tracking: API keys allow API providers to track and monitor how their API is being used. They can collect data on the number of requests made, the endpoints accessed, and other metrics that help analyze usage patterns and optimize API performance.

...

Code Block
languagebash
curl -X 'POST' \
  'http://localhost:8085/es/api/v1/search/' \
  -H 'accept: application/json' \
  -H 'Authorization: Search U2VhcmNop1orHY8nL535WF2pb-BwVUcvtR0vkwgtlRLWz_I96S' \
  -H 'Content-Type: application/json' \
  -d '{
  "q": "testing",
  "size": 25,
  "page": 1
}'
Info


Content by Label
showLabelsfalse
max5
spacesSEARCHAPI
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "s2s" and type = "page" and space = "SEARCHAPI"
labelss2s

...