Default Behaviour
By default,scanoss.New connects to https://api.scanoss.com (scanoss.DefaultAPIURL) without authentication. The public endpoint rejects keyless requests; a custom endpoint, an on-prem deployment for example, may allow them.
Using an API Key
Pass it asAPIKey on Config. You can obtain an API key from your SCANOSS account dashboard.
Using a Custom API Endpoint
SetAPIURL to direct the SDK at a different endpoint, such as an on-prem deployment:
Proxy and Custom CA
An unreadable CA file or a schemeless proxy fails at
scanoss.New(...),
not on the first request, so a misconfiguration surfaces immediately
rather than mid-scan.Config fields, request timeout, retry behaviour, and decoration chunk/worker tuning.