Skip to content

How to provide API key? #1506

@rkg-mm

Description

@rkg-mm

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions