Skip to main content
Before your app can communicate with the API you need to create a new API key. The API handles authentication using a signed JSON Web Token (JWT) which is passed in an HTTP header.
curl -X GET https://api.example.gr4vy.app/transactions \
  -H "authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi..."
Using an SDK is recommended. SDKs make the process of generating a token a lot easier and are available in many popular programming languages. This is covered in the next step.

Create a new API key

To use the API you need to generate a new API key. Head over to your dashboard and visit the Integrations page. API key dashboard On this page, click the Add API key button and select a name for your key. The name is purely for you to track what key is for what integration. You need to store the downloaded key securely as it is not stored for you.
Learn more about API keys and JWTs in the in-depth guide on authentication.

Summary

In this step you:
  • Learned about API authentication.
  • Created a new API key for use with the API.
  • Stored this API key in a secure place where your app can access it.