-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi,
I am trying to call the API with configured API key, but it is not used (anonymous pool indicated by response headers, and the management UI shows the API key was "never used").
What am I doing wrong?
curl -i --request POST ^
--url "https://packages.ecosyste.ms/api/v1/packages/bulk_lookup" ^
--header "Content-Type: application/json" ^
--header "Authorization: Bearer xxxxxxxxx" ^
--header "User-Agent: mailto@xxx@example.com" ^
--data "{ \"purls\": [ \"pkg:npm/file-entry-cache@6.0.1\" ]}"
Providing the email in User-Agent header at least joins the polite pool, but still anonymous user. Without it its the anonymous pool.
x-ratelimit-limit: 15000
x-ratelimit-remaining: 14999
x-ratelimit-reset: 1773313200
x-ratelimit-tier: polite
x-ratelimit-consumer: anonymous
Assuming the API key is the one generated in https://ecosyste.ms/account/api_key?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels