The Prestavi API supports authentication using a Bearer token. This allows access from your own server. Remember to keep your API key secret. They act on your behalf when interacting with the API. We suggest that you use environment variables instead of hardcoding them in your scripts.

You can generate an API key from your Prestavi account by navigating to Manage > Developers > API Keys.

All API requests must be made over HTTPS. API requests without authentication will fail.

To use your API key, include the Authorization Header with the Bearer scheme.

curl -H "Authorization: Bearer <your API key>"