diff --git a/content/docs/usage/authentication.md b/content/docs/usage/authentication.md index a29d167..a40b72a 100644 --- a/content/docs/usage/authentication.md +++ b/content/docs/usage/authentication.md @@ -5,22 +5,24 @@ title: Authentication ## Unauthenticated access -We maintain two request pools, to help us better understand user behavior and to manage service response times: +There are two ways to make requests to ecosyste.ms without a paid account. -### Polite Pool +### 1. Unauthenticated requests -The polite pool is our priority pool of known users. To access the polite pool you will need to provide an email address so that we can contact you should we need to discuss fair usage and rate limits. +Making requests without any kind of authentication is supported but not advised. The rate limit applied to anonymous +requests is the same as the [free](https://ecosyste.ms/pricing) rate limit, but anonymous users will have less +consistent response times, especially during peak periods as we prioritise authenticated users. -To access the polite pool: +### 2. Free plan -* Add `mailto=you@example.com` as a query parameter to your API request, or -* Add `mailto:you@example.com` somewhere in your User-Agent request header, or -* Configure your [`from` request header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/From). +We advise users without a paid account to create and use an API key. +To create an API key +[create an account and/or log in](https://ecosyste.ms/login), +select ‘API Key’ from the navigation menu and click ‘Create an API Key’. +Send your key with each request in an `X-API-Key` or `apikey` header, or as an `apikey` query parameter. -### Common Pool - -The common pool is for everyone else. It will have less consistent response times, especially during peak periods so that we can prioritize polite requests more easily. +To increase your rate limit, upgrade to a [paid plan](https://ecosyste.ms). ## Authenticated access -Some of our APIs are available only to authenticated, paid users. We will expand upon this when our paid access tiers are made available to the general public. \ No newline at end of file +To create an API key [create an account and/or login](https://ecosyste.ms/login), select API Key from the navigation menu and click 'Create an API Key'. Send your key with each request in an `X-API-Key` or `apikey` header, or as an `apikey` query parameter. diff --git a/content/docs/usage/rate-limits.md b/content/docs/usage/rate-limits.md index e61da88..38476af 100644 --- a/content/docs/usage/rate-limits.md +++ b/content/docs/usage/rate-limits.md @@ -3,11 +3,13 @@ weight: 1 title: Rate limits --- -Rate limits apply to all requests to ensure the service is responsive and available for all users. Your rate limit depends upon your [access method](/docs/usage/authentication/) and [paid service tier](/docs/usage/commercial/): +Rate limits apply to all requests to ensure the service is responsive and available for all users. +Your rate limit depends upon your [access method](/docs/usage/authentication/) and +[paid service tier](https://ecosyste.ms/pricing): ## Default rate limits -We operate a two-tier rate limiting system for unatuhenticated access. Read more about [unauthenticated access](/docs/usage/authentication/) +We operate a rate limiting system for unatuhenticated access. Read more about [unauthenticated access](/docs/usage/authentication/). ## Commercial rate limits diff --git a/go.mod b/go.mod index 0f42690..2d67c42 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/ecosyste-ms/docs go 1.21 + +require github.com/imfing/hextra v0.13.0 // indirect diff --git a/go.sum b/go.sum index e69de29..6557292 100644 --- a/go.sum +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/imfing/hextra v0.13.0 h1:1zhCYy0tA9ZRErFBlU6NJEgR1HjK69bgd52EmpwnG00= +github.com/imfing/hextra v0.13.0/go.mod h1:vi+yhpq8YPp/aghvJlNKVnJKcPJ/VyAEcfC1BSV9ARo=