https://infracost.io logo
#help
Title
# help
a

able-pencil-95187

03/22/2023, 6:48 PM
When `POST`ing to a local
Cloud Pricing API
server, I get this:
Copy code
~/cloud-pricing-api $ curl -X POST <http://localhost:4000>
{"error":"Invalid API key"}
What is the format for including the API credential in the
POST
request?
b

busy-agent-35515

03/22/2023, 6:54 PM
You can find the example here: https://github.com/infracost/cloud-pricing-api
Here are the steps how to setup the API key: https://github.com/infracost/cloud-pricing-api
a

able-pencil-95187

03/22/2023, 6:55 PM
oof! I've been looking at the docs, repo, etc. the last few days, I'm now glossing straight over this stuff. thank you!
b

busy-agent-35515

03/22/2023, 6:55 PM
No problem :)