Webhooks, third-party connectors, and data sync
Salesforce, HubSpot, Zapier
Real-time events
Bi-directional sync
Flexible integration
X-Smsly-Key-Id: sk_live_xxxX-SMSLY-SDK-KEY: sdk_live_xxxfrom smsly import SMSly
# === DUAL KEY SECURITY ===
client = SMSly(
api_key="sk_live_xxx",
sdk_key="sdk_live_xxx"
)
# Register a webhook
webhook = client.integration.webhook_create(
url="https://your-app.com/webhooks/smsly",
events=["message.sent", "message.delivered", "message.failed"]
)
print(f"Webhook ID: {webhook.id}")
# Connect to Salesforce
salesforce = client.integration.connect(
provider="salesforce",
credentials={
"client_id": "xxx",
"client_secret": "xxx",
"refresh_token": "xxx"
}
)
# Trigger a data sync
client.integration.sync(integration_id=salesforce.id)/v1/integration/webhookRegister webhook/v1/integration/connectConnect third-party/v1/integration/syncTrigger data sync/v1/integration/status/:idGet integration status/v1/integration/listList integrations