Skip to content

Commit abf60f3

Browse files
algolia-botKeylor42
andcommitted
feat: add rate limit headers description (generated)
Co-authored-by: Thomas Paulmyer <[email protected]>
1 parent 326b12c commit abf60f3

File tree

12 files changed

+175
-19
lines changed

12 files changed

+175
-19
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Clients/PersonalizationConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Personalization API
33
*
4-
* The Personalization API lets you access user profiles built from the personalization strategy. ## Base URLs The base URLs for requests to the Personalization API are: - `https://personalization.us.algolia.com` - `https://personalization.eu.algolia.com` Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ## Authentication To authenticate your API requests, add these headers: - `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint's reference. You can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account). ## Request format Request bodies must be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ## Version The current version of the Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
4+
* The Personalization API lets you access user profiles built from the personalization strategy. ## Base URLs The base URLs for requests to the Personalization API are: - `https://personalization.us.algolia.com` - `https://personalization.eu.algolia.com` Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ## Authentication To authenticate your API requests, add these headers: - `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint's reference. You can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account). ## Request format Request bodies must be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ## Rate limiting When making requests to the Personalization API, you are limited to 40 API calls per second per application. The following headers provide information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. - `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
55
*
66
* The version of the OpenAPI document: 1.0.0
77
* Generated by: https://github.com/openapitools/openapi-generator.git

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/DeleteUserProfileResponse.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/ErrorBase.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/EventType.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/EventsScoring.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/FacetsScoring.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/GetUserTokenResponse.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/JsonSupport.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/PersonalizationStrategyParams.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/personalization/SetPersonalizationStrategyResponse.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
* be JSON objects. ## Response status and errors The Personalization API returns JSON responses. Since JSON doesn't
1010
* guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses
1111
* return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error
12-
* responses have a `message` property with more information. ## Version The current version of the Personalization API
13-
* is version 1, as indicated by the `/1/` in each endpoint's URL.
12+
* responses have a `message` property with more information. ## Rate limiting When making requests to the
13+
* Personalization API, you are limited to 40 API calls per second per application. The following headers provide
14+
* information about your current limit: - `x-ratelimit-limit`: The number of requests allowed every second. -
15+
* `x-ratelimit-remaining`: The number of requests remaining in the current second period. - `x-ratelimit-reset`: [Unix
16+
* timestamp](https://www.unixtimestamp.com/) of the next time period. ## Version The current version of the
17+
* Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.
1418
*
1519
* The version of the OpenAPI document: 1.0.0
1620
*

docs/bundled/personalization.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@ info:
6161
Error responses have a `message` property with more information.
6262
6363
64+
## Rate limiting
65+
66+
67+
When making requests to the Personalization API, you are limited to 40 API
68+
calls per second per application.
69+
70+
71+
The following headers provide information about your current limit:
72+
73+
74+
- `x-ratelimit-limit`: The number of requests allowed every second.
75+
76+
- `x-ratelimit-remaining`: The number of requests remaining in the current
77+
78+
second period.
79+
80+
- `x-ratelimit-reset`: [Unix timestamp](https://www.unixtimestamp.com/) of
81+
82+
the next time period.
83+
84+
6485
## Version
6586
6687
@@ -1017,6 +1038,13 @@ paths:
10171038
responses:
10181039
'200':
10191040
description: OK
1041+
headers:
1042+
x-ratelimit-limit:
1043+
$ref: '#/components/headers/x-ratelimit-limit'
1044+
x-ratelimit-remaining:
1045+
$ref: '#/components/headers/x-ratelimit-remaining'
1046+
x-ratelimit-reset:
1047+
$ref: '#/components/headers/x-ratelimit-reset'
10201048
content:
10211049
application/json:
10221050
schema:
@@ -1283,6 +1311,13 @@ paths:
12831311
responses:
12841312
'200':
12851313
description: OK
1314+
headers:
1315+
x-ratelimit-limit:
1316+
$ref: '#/components/headers/x-ratelimit-limit'
1317+
x-ratelimit-remaining:
1318+
$ref: '#/components/headers/x-ratelimit-remaining'
1319+
x-ratelimit-reset:
1320+
$ref: '#/components/headers/x-ratelimit-reset'
12861321
content:
12871322
application/json:
12881323
schema:
@@ -1534,6 +1569,13 @@ paths:
15341569
responses:
15351570
'200':
15361571
description: OK
1572+
headers:
1573+
x-ratelimit-limit:
1574+
$ref: '#/components/headers/x-ratelimit-limit'
1575+
x-ratelimit-remaining:
1576+
$ref: '#/components/headers/x-ratelimit-remaining'
1577+
x-ratelimit-reset:
1578+
$ref: '#/components/headers/x-ratelimit-reset'
15371579
content:
15381580
application/json:
15391581
schema:
@@ -2263,6 +2305,24 @@ components:
22632305
application/json:
22642306
schema:
22652307
$ref: '#/components/schemas/ErrorBase'
2308+
headers:
2309+
x-ratelimit-limit:
2310+
description: Number of allowed requests per one minute.
2311+
example: 100
2312+
schema:
2313+
type: integer
2314+
x-ratelimit-remaining:
2315+
description: Number of remaining requests in the current period.
2316+
example: 99
2317+
schema:
2318+
type: integer
2319+
x-ratelimit-reset:
2320+
description: >-
2321+
Timstamp when the rate limit will reset, measured in seconds since the
2322+
Unix epoch.
2323+
example: 1710682486
2324+
schema:
2325+
type: integer
22662326
x-tagGroups:
22672327
- name: General
22682328
tags:

0 commit comments

Comments
 (0)