Authorization

Hello! Firstly, you need to sign into foxyapps.ai. After successfully logging in, navigate your way to Settings and then select API. This is where you can create your unique API key.

Keep in mind, this key is a one-off sight; it's displayed just once, so be sure to save it in a secure location.

When it's time to interact with our API, this key is your access pass. Simply include it in the 'Authorization' header of your request, prefixed by the word 'Bearer'. With these steps, you're all set to use our API!

Apps API

FoxyApps offers the capability to generate custom responses based on predefined input values using our API, and we don't automatically save every submission as a lead. If you also want to collect leads, make sure to include the magnet_id parameter in your request.

The required data for the JSON payload includes the app_slug and specific input fields for the FoxyApp you wish to utilize. You can find these input fields under the API schema for each app.

Lastly, to use our API, send a POST request to https://www.foxyapps.ai/**api/app** with the above details. This will ensure successful communication with our service.

Screenshot 2023-05-26 at 10.07.04.png

Screenshot 2023-05-26 at 10.07.30.png

So, in the end, our payload for weekly social media content planner would look like this:

{
	app_slug: "weekly-social-media-content-planner",
	topic: "Software",
	audience: "Tech Bros"
}

Generate a weekly content plan for social media

var myHeaders = new Headers();
myHeaders.append("Content-Type", "text/plain");
myHeaders.append("Authorization", "Bearer " + your_api_key);

var raw = {
	app_slug: "weekly-social-media-content-planner",
	topic: "Software",
	audience: "Tech Bros"
};

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: JSON.stringify(raw),
  redirect: 'follow'
};

fetch("<https://foxyapps.ai/api/app>", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Automatic Outreach & Lead Capture

To facilitate the lead magnet functionality through our API, you will first need to create a new lead magnet. This can be done by choosing one of our APPs and clicking “Embed”. After you’ve finished this process, take the magnet_id and use it in the payload.