Answers about http-api
Questions and answers from the Croct community about http-api.
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…
No SvelteKit SDK, so I am calling the Content API from a server load function. Sane?
Couldn't find a SvelteKit SDK so I prototyped this in a +page.server.js load function and it works, but I want a sanity check before building on it: Is the…
Evaluation API keeps returning a missing client id error from my curl test
Testing the Evaluation API before wiring it into our backend. This command returns a problem response about a missing client id even though the API key is…
Requests started failing after we enriched context attributes with a big object
We run a marketplace and started passing our product object as context attributes so audiences could target by category, seller, price range, etc. Worked at…
What error format does the Croct HTTP API return? Building a typed client
Writing a thin typed client for the Content and Evaluation APIs. Need the error envelope. Is it consistent across endpoints or per-endpoint shapes? Want to…