Authentication
You'll need to authenticate your requests to access any of the endpoints in the Reportyy API. In this guide, we'll look at how authentication works.
API Key
With API key authentication, you use your API key to authenticate your HTTP requests. You can generate up to 5 API keys for your account. Here's how to authenticate using cURL:
Example request with API key
curl -X POST https://api.reportyy.com/api/v1/templates/cleblj0lc000008l37ydve80e/generate-sync \
-H 'Authorization: API-Key rpty_Q6huXE...'
-H 'Content-Type: application/json'
-d '{"date": "12 Feb 2023"}'
Always keep your API key safe and deactivate it if you suspect it has been compromised.
Using an SDK
If you use one of our official SDKs, fetch your access token from the Reportyy dashboard under Settings -> API Keys, and the client library will take care of the rest.