Skip to content

Custom Connectors

Overview

Create custom integrations using Solatis webhooks and APIs.

Webhooks

Create Webhook

  1. Settings → Webhooks
  2. Click New Webhook
  3. Select events to subscribe to
  4. Enter webhook URL
  5. Save

Webhook Events

  • document.uploaded - New document added
  • analysis.completed - Analysis finished
  • agent.executed - Agent ran
  • error.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/documents

Integration Examples

Zapier/Make

Connect Solatis to 1000+ apps:

  1. Search "Solatis" in Zapier
  2. Create trigger (new document)
  3. Set action (send to app)
  4. Test & activate

Slack Bot

Build Slack bot using webhooks:

  1. Create Slack app
  2. Subscribe to document events
  3. Send notifications to Slack
  4. 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:

See Connectors for built-in options.

Released under the MIT License.