The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add more docs
Steven Tey2b22db12d051
diff --git a/docs/api-reference/introduction.mdx b/docs/api-reference/introduction.mdxindex 89022d320a..b92f7fe2b3 100644--- a/docs/api-reference/introduction.mdx+++ b/docs/api-reference/introduction.mdx@@ -36,20 +36,3 @@ The API returns standard HTTP response codes to indicate the success or failure| `404` | The requested resource could not be found. || `429` | Too many requests. || `500` | The server encountered an unexpected condition which prevented it from fulfilling the request. |--## Rate Limit--Dub's API rate limiting is in conformance with the [IETF standard](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-ratelimit-headers):--| Header Name | Description |-| ----------------------- | ------------------------------------------------------------------------------- |-| `X-RateLimit-Limit` | The maximum number of requests that the consumer is permitted to make per hour. |-| `X-RateLimit-Remaining` | The number of requests remaining in the current rate limit window. |-| `X-RateLimit-Reset` | The time at which the current rate limit window resets in UTC epoch seconds. |-| `Retry-After` | The number of seconds to wait before retrying the request again. |--Dub's API is capped at **10 requests per second** per user.--This is implemented to ensure a fair usage policy so that excessive use by a single user does not adversely affect the performance and usage of the API by others.--You'll receive a `429 Too Many Requests` response code if the rate limit is exceeded.diff --git a/docs/api-reference/rate-limits.mdx b/docs/api-reference/rate-limits.mdxnew file mode 100644index 0000000000..cf19859357--- /dev/null+++ b/docs/api-reference/rate-limits.mdx@@ -0,0 +1,19 @@+---+title: "Rate limits"+description: "Learn about Dub's API rate limits."+---++Dub's API rate limiting is in conformance with the [IETF standard](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-ratelimit-headers):++| Header Name | Description |+| ----------------------- | ------------------------------------------------------------------------------- |+| `X-RateLimit-Limit` | The maximum number of requests that the consumer is permitted to make per hour. |+| `X-RateLimit-Remaining` | The number of requests remaining in the current rate limit window. |+| `X-RateLimit-Reset` | The time at which the current rate limit window resets in UTC epoch seconds. |+| `Retry-After` | The number of seconds to wait before retrying the request again. |++Dub's API is capped at **10 requests per second** per user.++This is implemented to ensure a fair usage policy so that excessive use by a single user does not adversely affect the performance and usage of the API by others.++You'll receive a `429 Too Many Requests` response code if the rate limit is exceeded.diff --git a/docs/mint.json b/docs/mint.jsonindex 2befd95a15..f15689c0e2 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -49,9 +49,7 @@"navigation": [{"group": "API Reference",- "pages": [- "api-reference/introduction"- ]+ "pages": ["api-reference/introduction", "api-reference/rate-limits"]},{"group": "Links",@@ -75,4 +73,4 @@"linkedin": "https://www.linkedin.com/company/dubhq","website": "https://dub.co"}-}\ No newline at end of file+}