Querying for All Prompts
You may want to programmatically access all of your prompts that exist within your Izlo database. We have an endpoint that will return a list of all of your prompts along with the prompt text stored within the application.
The endpoint lives at: https://getizlo.com/api/v1/list-prompts/
Here is an example of how to access this API endpoint
example.js
fetch('https://getizlo.com/api/v1/list-prompts/', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + YOUR_API_KEY,
},
})
example.py
import requests
url = 'https://getizlo.com/api/v1/list-prompts/'
token = 'YOUR_API_KEY'
headers = {
'Authorization': 'Bearer ' + token
}
response = requests.get(url, headers=headers)
It should be noted that the content that API returns is dependent on what API key you pass it. All API keys are scoped to a user and only return what they are allowed to access on the platform.
Here is an example of what the response looks like
example.json
[
{
"id": "PROMPT_ID",
"name": "Excel Budget Tracker Setup",
"prompt_text": "Could you guide me on how to set up an automated Excel spreadsheet to track monthly income and expenses? Please provide step-by-step instructions and the necessary formulas.",
"description": "This prompt seeks guidance on creating a comprehensive Excel spreadsheet for tracking monthly income and expenses. Follow the steps and formulas provided to get a holistic view of your finances.",
"created_at": "2023-09-18T11:00:46.702877-05:00",
"updated_at": "2023-09-18T11:00:46.702889-05:00"
},
// More objects continued
]