Making Authenticated Requests
Now that you've generated your API key you're ready to start making requests. This short guide will walk you through how to add your key to a request in order to authenticate your account.
X-API-KEY: Add your API Key
Our authentication method relies on a header called X-API-KEY.
This is the only method available for authentication and is as easy as possible to implement.
Simply add X-API-KEY: {YOUR_API_KEY} to the headers of your request and you're good to go.
cURL example using X-API-KEY
Try this example out in your terminal to get a feel for the API.
curl --location --request GET 'https://formeezy.com/api/v1/submissions' \ --header 'X-API-KEY: {YOUR_API_KEY}'
Axios example using X-API-KEY
Here's a more common use case - using in a fetch based request with Axios.
var axios = require('axios'); var config = { method: 'get', url: 'https://formeezy.com/api/v1/submissions', headers: { 'X-API-KEY': '{YOUR_API_KEY}' } }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
Next Steps
That's all there is to it! You're now ready to start making requests.