API Quickstart
This guide will get you all set up and ready to use the Slateo API. We'll cover how to get started making your first API request using cURL. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
New to Slateo? Check out the Getting Started Guide for a complete walkthrough of the platform, including the web interface, AI agent, and collaboration features.
Before you can make requests to the Slateo API, you will need to grab your API key from your organization settings in the Slateo dashboard.
Making your first API request
Now you're ready to make your first call to the Slateo API. Below, you can see how to send a GET request to the Queries endpoint to get a list of all your queries. The default page size is 20 queries per request.
curl -G https://api.slateo.ai/api/queries \
-H "Authorization: Bearer {token}" \
-d limit=10
What's next?
Great, you've now made your first request to the API. Here are a few links that might be handy as you venture further into the Slateo API:
- Check out the Queries endpoint
- Learn about Query References
- Learn about the different error messages
Learn from real examples
See how teams use Slateo in their daily workflows:
- Ad-hoc data exploration - How analysts go from question to answer
- Setting up Slateo for your data team - Best practices for workspace structure and permissions
- Building and sharing reports - End-to-end workflow from query to dashboard
- Using Slateo with Slack - Answer data questions without leaving chat
FAQ
Where do I find my API key?
You can create and manage API keys in your organization settings in the Slateo dashboard. Navigate to Organization Settings → API Keys and click Create API Key.
Can I use the API without authentication?
No, all API endpoints require authentication. You must include a valid API key in the Authorization header of every request.
What's the difference between Queries and Query References?
Queries are SQL statements that can be executed against your databases. Query References are bookmarks that point to specific queries and provide permalinks for sharing, along with visualizations and parameters.