GetApiKeyResponse

algoliasearch.search.GetApiKeyResponse
case class GetApiKeyResponse(value: Option[String], createdAt: Long, acl: Seq[Acl], description: Option[String], indexes: Option[Seq[String]], maxHitsPerQuery: Option[Int], maxQueriesPerIPPerHour: Option[Int], queryParameters: Option[String], referers: Option[Seq[String]], validity: Option[Int])

GetApiKeyResponse

Value parameters

acl

Permissions associated with the key.

createdAt

Timestamp of creation in milliseconds in Unix epoch time.

description

Description of an API key for you and your team members.

indexes

Restricts this API key to a list of indices or index patterns. If the list is empty, all indices are allowed. Specify either an exact index name or a pattern with a leading or trailing wildcard character (or both). For example: - dev_* matches all indices starting with "dev_" - *_dev matches all indices ending with "_dev" - *_products_* matches all indices containing "products".

maxHitsPerQuery

Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. > Note: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.

maxQueriesPerIPPerHour

Maximum number of API calls per hour allowed from a given IP address or user token. Each time an API call is performed with this key, a check is performed. If there were more than the specified number of calls within the last hour, the API returns an error with the status code 429 (Too Many Requests). > Note: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.

queryParameters

Force some query parameters to be applied for each query made with this API key. It's a URL-encoded query string.

referers

Restrict this API key to specific referrers. If empty, all referrers are allowed. For example: - https://algolia.com/_* matches all referrers starting with "https://algolia.com/" - *.algolia.com matches all referrers ending with ".algolia.com" - *algolia.com* allows everything in the domain "algolia.com".

validity

Validity duration of a key (in seconds). The key will automatically be removed after this time has expired. The default value of 0 never expires. Short-lived API keys are useful to grant temporary access to your data. For example, in mobile apps, you can't control when users update your app. So instead of encoding keys into your app as you would for a web app, you should dynamically fetch them from your mobile app's backend.

value

API key.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product