Custom Connectors
Overview
Create custom integrations using Solatis webhooks and APIs.
Webhooks
Create Webhook
- Settings → Webhooks
- Click New Webhook
- Select events to subscribe to
- Enter webhook URL
- Save
Webhook Events
document.uploaded- New document addedanalysis.completed- Analysis finishedagent.executed- Agent ranerror.occurred- Error happened
Webhook Payload
json
{
"event": "document.uploaded",
"timestamp": "2024-02-02T10:00:00Z",
"data": {
"document_id": "doc123",
"name": "Report.pdf",
"size": 1024
}
}Using APIs
REST API
Build custom integrations using REST API:
python
import requests
# Upload document
response = requests.post(
"https://api.solatis.team/v1/documents",
headers={"Authorization": f"Bearer {api_key}"},
files={"file": open("document.pdf", "rb")}
)Authentication
Use API keys or OAuth 2.0:
bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.solatis.team/v1/documentsIntegration Examples
Zapier/Make
Connect Solatis to 1000+ apps:
- Search "Solatis" in Zapier
- Create trigger (new document)
- Set action (send to app)
- Test & activate
Slack Bot
Build Slack bot using webhooks:
- Create Slack app
- Subscribe to document events
- Send notifications to Slack
- Use slash commands
Custom Script
python
import requests
import schedule
def process_documents():
# Get new documents
response = requests.get(
"https://api.solatis.team/v1/documents",
params={"status": "processing"},
headers={"Authorization": f"Bearer {api_key}"}
).json()
# Process each
for doc in response['data']:
# Your logic here
pass
# Schedule to run daily
schedule.every().day.at("10:00").do(process_documents)Best Practices
- Use webhooks for real-time events
- Cache API responses
- Implement retry logic
- Log all integrations
- Monitor performance
Support
Build custom connectors with:
- API Documentation
- Code Examples
- Support: api-support@solatis.team
See Connectors for built-in options.