Integrations
SDKs
Official client libraries and direct REST access for every language.
Note: SDKs are currently in development. The REST API is stable and recommended for production use today.
Python
pip install ldm-sdkfrom ldm import Client
client = Client(api_key="ldm_live_sk_abc123...")
# Send a message
response = client.messages.send(
to="cto@acme.com",
subject="Quick question",
body="Hi, I noticed your team is scaling fast...",
from_pool="managed"
)
print(response.message_id) # msg_01HQX7kP...
print(response.status) # queued
# Check delivery status
status = client.messages.get(response.message_id)
print(status.status) # inbox | spam | bounce
# List creatives
creatives = client.creatives.list()
for c in creatives:
print(f"{c.creative_id}: {c.status}")Node.js
npm install @live-direct-marketing/sdkimport { Client } from '@live-direct-marketing/sdk';
const client = new Client({ apiKey: 'ldm_live_sk_abc123...' });
// Send a message
const response = await client.messages.send({
to: 'cto@acme.com',
subject: 'Quick question',
body: 'Hi, I noticed your team is scaling fast...',
fromPool: 'managed'
});
console.log(response.messageId); // msg_01HQX7kP...
console.log(response.status); // queued
// Check delivery status
const status = await client.messages.get(response.messageId);
console.log(status.status); // inbox | spam | bounce
// List creatives
const creatives = await client.creatives.list();
creatives.forEach(c => console.log(`${c.creativeId}: ${c.status}`));REST API
Use the REST API directly from any language with an HTTP client. No SDK required.
curl -X POST https://api.live-direct-marketing.online/v1/messages \
-H "Authorization: Bearer ldm_live_sk_abc123..." \
-H "Content-Type: application/json" \
-d '{
"to": "cto@acme.com",
"subject": "Quick question",
"body": "Hi, I noticed your team is scaling fast...",
"from_pool": "managed"
}'SDK features
| Feature | Python | Node.js | REST |
|---|---|---|---|
| Send messages | Yes | Yes | Yes |
| Check delivery | Yes | Yes | Yes |
| Manage creatives | Yes | Yes | Yes |
| Auto-retry | Yes | Yes | Manual |
| TypeScript types | N/A | Yes | N/A |
| Webhook verification | Yes | Yes | Manual |