Quick Start
Get up and running with ParseSphere in three simple steps.
New to ParseSphere?
This guide will walk you through your first API call. You'll need an API key from the dashboard.
Step 1: Get Your API Key
Create an API key from the dashboard. Your API key starts with ps_ and should be stored securely in environment variables.
Warning
Never commit API keys to source control. Use environment variables or secrets management.
Step 2: Parse a Document
Submit a document for parsing using our API. Optional parameters:
process_images(default: true) - Enable OCR for images and scanned documentsextract_tables(default: true) - Extract tables into structured formatsession_ttl(default: 24 hours) - How long results remain cached (in seconds, minimum 60)
/v1/parsesSubmit a document for text extraction and processing
curl -X POST https://api.parsesphere.com/v1/parses \
-H "Authorization: Bearer sk_your_api_key" \
-F "file=@document.pdf" \
-F "process_images=true" \
-F "extract_tables=true" \
-F "session_ttl=1800"Step 3: Retrieve Results
Poll the status endpoint to check progress:
/v1/parses/{parse_id}Check processing status and retrieve results
curl https://api.parsesphere.com/v1/parses/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer sk_your_api_key"Processing States
Waiting for available worker
Extracting content
Results ready
Error occurred
Waiting for available worker
Extracting content
Results ready
Error occurred
Polling Best Practices
Production Tip
For production use, provide a webhook_url when creating a parse to receive automatic notifications when processing completes, eliminating the need for polling.
- Check the status endpoint every 5 seconds while
statusisqueuedorprocessing - Stop polling once
statusiscompletedorfailed - The
progressfield (0-100%) and optionalmessageprovide real-time updates during processing - Results remain cached for 24 hours by default (configurable via
session_ttlparameter, minimum 60 seconds)
Query Tabular Data
ParseSphere also lets you query CSV and Excel files using natural language.
Step 1: Create a Workspace
/v1/workspacesCreate a container for organizing related datasets
curl -X POST https://api.parsesphere.com/v1/workspaces \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Sales Analysis",
"description": "Q4 sales data"
}'Step 2: Upload a Dataset
/v1/workspaces/{workspace_id}/datasetsUpload a CSV or Excel file to your workspace
curl -X POST https://api.parsesphere.com/v1/workspaces/{workspace_id}/datasets \
-H "Authorization: Bearer sk_your_api_key" \
-F "file=@sales_data.csv"Information
Processing time varies by file size and complexity. Check status at the status_url returned in the response.
Step 3: Query Your Data
/v1/workspaces/{workspace_id}/queryAsk questions about your data in natural language
curl -X POST https://api.parsesphere.com/v1/workspaces/{workspace_id}/query \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the top 5 products by revenue?"
}'ParseSphere will interpret your question, retrieve the relevant data, and return a natural language answer with structured results.
What's Next?
You're Ready!
You've made your first API call. Now explore advanced features and best practices.
Now that you've made your first API call, explore these resources:
- Authentication - Learn about API key management and security
- Document Parsing - Deep dive into extraction options and formats
- Tabula - Master natural language queries for tabular data
- Dashboard - Manage your API keys, workspaces, and monitor usage
- API Reference - Complete API documentation with all endpoints
