-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpengine-rate-limits.yml
More file actions
78 lines (70 loc) · 3 KB
/
Copy pathwpengine-rate-limits.yml
File metadata and controls
78 lines (70 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: WP Engine API Rate Limits
description: Rate limiting policies for the WP Engine Hosting Platform REST API v1.
url: https://developers.wpengine.com/docs/managed-hosting-platform/api
version: "1.17.0"
general:
description: The WP Engine API enforces rate limits per account and per IP address. When limits are exceeded, the API responds with HTTP 429 Too Many Requests. Developers should implement retry logic with exponential backoff to handle rate limit errors gracefully.
errorCode: 429
errorMessage: Too Many Requests
retryStrategy: exponential backoff
limits:
- name: General API Rate Limit
description: General per-account rate limit applying to most API endpoints.
scope: account
header: Retry-After
notes: Exact numeric thresholds are not publicly documented. Contact WP Engine support for specifics.
- name: Install Creation Throttle
description: Install (environment) creation operations are throttled to prevent cluster degradation.
scope: account
operations:
- POST /installs
notes: Batch creation of installs can impact cluster performance; requests are throttled accordingly.
- name: Domain Creation Succession Limit
description: Domain creation and update operations enforce succession limits to prevent abuse.
scope: install
operations:
- POST /installs/{install_id}/domains
- PUT /installs/{install_id}/domains/{domain_id}
notes: Rapid successive domain operations are restricted.
- name: Cache Purge Rate Limits
description: Cache purging operations have type-specific rate limits for object cache, page cache, and CDN cache.
scope: install
types:
- name: Object Cache Purge
operation: POST /installs/{install_id}/purgeCache
cacheType: object
- name: Page Cache Purge
operation: POST /installs/{install_id}/purgeCache
cacheType: page
- name: CDN Cache Purge
operation: POST /installs/{install_id}/purgeCache
cacheType: cdn
notes: Each cache type has its own rate limit. Purging all cache types simultaneously counts against each respective limit.
pagination:
description: API responses are paginated using offset-based pagination.
maxLimit: 100
defaultLimit: 100
parameters:
- name: limit
description: Number of results per page (maximum 100)
type: integer
maximum: 100
- name: offset
description: Starting position for results
type: integer
minimum: 0
headers:
- name: Authorization
description: Basic Auth credentials encoded as base64(username:password)
required: true
format: "Basic <base64-encoded-credentials>"
errorHandling:
- code: 429
message: Too Many Requests
action: Implement exponential backoff and retry after the period indicated in Retry-After header
- code: 401
message: Unauthorized
action: Verify API credentials are valid and properly base64-encoded
- code: 403
message: Forbidden
action: Verify the authenticated user has permission for the requested resource