You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`POST /tokens`| 100 requests per minute per `external_user_id`|
148
150
|`GET */accounts/*`| The sum of requests across all `*/accounts/*` endpoints must not exceed 100 requests per minute. This includes requests to `/accounts`, `/apps/:app_id/accounts`, `/accounts/:account_id`, and more — any request for account metadata and credentials is counted towards this total. |
149
151
150
152
If you need higher rate limits, please [reach out](https://pipedream.com/support).
151
153
154
+
### Developer rate limits
155
+
156
+
- You can optionally set rate limits for your users to control their usage of the Connect API from within your application, to prevent runaway use or abuse.
157
+
- Specify a time window in seconds and how many requests to allow in that window. The API will give you a `rate_limit_token` that you'll need to include in future `/connect/` requests:
158
+
159
+
```
160
+
POST /rate_limits
161
+
```
162
+
163
+
**Body parameters**
164
+
165
+
`window_size_seconds`**integer**
166
+
167
+
Define the size of the time window in seconds.
168
+
169
+
---
170
+
171
+
`requests_per_window`**integer**
172
+
173
+
Define the number of requests you want to allow per time window.
174
+
175
+
**Example request**
176
+
177
+
```bash
178
+
# First, obtain an OAuth access token
179
+
curl -X POST https://api.pipedream.com/v1/oauth/token \
180
+
-H "Content-Type: application/json" \
181
+
-d '{
182
+
"grant_type": "client_credentials",
183
+
"client_id": "{oauth_client_id}",
184
+
"client_secret": "{oauth_client_secret}"
185
+
}'
186
+
187
+
# The response will include an access_token. Use it in the Authorization header below.
188
+
# Define the rate limit parameters
189
+
190
+
curl -X POST https://api.pipedream.com/v1/connect/rate_limits \
0 commit comments