To use the API, you need to generate an API key:
Generate new API token
<aside> 💡 Important: The API key is displayed only once, so make sure to save it in a secure location.
</aside>
Include this key in the 'Authorization' header of your request, prefixed by the word 'Bearer':
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${yourApiKey}`,
}
To use one of your apps via the API:
https://www.foxyapps.com/api/app
id
of the app you want to useYou can find the example payload for each of your apps by navigating to foxyapps.com/my-apps and clicking Actions
→ API Schema
Example request body:
{
"id": "fa04f53a-da6c-4b08-bca9-87772c3f228c",
"textarea_2": "Your input here",
"email": "[email protected]",
"select_1": "Option A",
"number_1": "42",
"web_1": "<https://example.com>",
"checkbox_field_1": "true"
}
<aside> 💡 Note: The API does not currently support apps that require PDF file uploads.
</aside>