Answers about api-key
Questions and answers from the Croct community about api-key.
How does the PHP SDK authenticate, and which API key permissions do I need?
I am wiring the PHP SDK into a service that also identifies logged-in users, so I want the credentials right before this ships rather than after. My…
Getting "Invalid credentials" calling the API even though my key is set
My server call to the Croct API keeps coming back with: I am certain the key is set. It is in the environment, I logged it (masked) at startup, and the value…
Running the Croct CLI in CI keeps asking me to log in, how do I automate it?
Trying to add a Croct CLI step to our pipeline and the step stops dead waiting for an interactive login. That obviously does not work in a headless runner, it…
fetchContent works locally but returns auth errors in prod, API key looks fine
Deployed our Next.js storefront with both env vars set: Locally everything works. In production every server-side fetchContent call fails with: I created the…
CROCT_API_KEY ended up in a shared log, how do I rotate it without downtime?
On 2026-06-16 we found CROCT_API_KEY printed in a CI log from a debug step added in April. The log is internal but shared across teams, so per our policy the…