You'll need to authenticate your requests to access any of the endpoints in the Previsto API. In this guide, we'll look at how authentication works. Previsto requires you to authenticate with your API key with Basic Auth.

Basic Auth

You can use your API key as a username to authenticate with your HTTP requests. You can omit the password. Here's how to authenticate using cURL:

Example request with basic auth

curl \
  -u sk_12345: \

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must authenticate for all requests.

Please don't publish your secret Previsto API key anywhere!