Skip to content

Commit ae2d0f0

Browse files
authored
docs(personalization): add rate limit information for personalization API (#4725)
1 parent 92d20ce commit ae2d0f0

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

specs/personalization/paths/deleteUserProfile.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ delete:
1414
responses:
1515
'200':
1616
description: OK
17+
headers:
18+
x-ratelimit-limit:
19+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-limit'
20+
x-ratelimit-remaining:
21+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-remaining'
22+
x-ratelimit-reset:
23+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-reset'
1724
content:
1825
application/json:
1926
schema:

specs/personalization/paths/getUserTokenProfile.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ get:
1111
responses:
1212
'200':
1313
description: OK
14+
headers:
15+
x-ratelimit-limit:
16+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-limit'
17+
x-ratelimit-remaining:
18+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-remaining'
19+
x-ratelimit-reset:
20+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-reset'
1421
content:
1522
application/json:
1623
schema:

specs/personalization/paths/personalizationStrategy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ get:
99
responses:
1010
'200':
1111
description: OK
12+
headers:
13+
x-ratelimit-limit:
14+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-limit'
15+
x-ratelimit-remaining:
16+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-remaining'
17+
x-ratelimit-reset:
18+
$ref: '../../common/responses/rateLimit.yml#/x-ratelimit-reset'
1219
content:
1320
application/json:
1421
schema:

specs/personalization/spec.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ info:
3737
Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.
3838
Error responses have a `message` property with more information.
3939
40+
## Rate limiting
41+
42+
When making requests to the Personalization API, you are limited to 40 API calls per second per application.
43+
44+
The following headers provide information about your current limit:
45+
46+
- `x-ratelimit-limit`: The number of requests allowed every second.
47+
- `x-ratelimit-remaining`: The number of requests remaining in the current
48+
second period.
49+
- `x-ratelimit-reset`: [Unix timestamp](https://www.unixtimestamp.com/) of
50+
the next time period.
51+
4052
## Version
4153
4254
The current version of the Personalization API is version 1, as indicated by the `/1/` in each endpoint's URL.

0 commit comments

Comments
 (0)