Using the Official SDKs
Official SDKs
Onbrix provides official SDKs in 7 programming languages.
Available SDKs
Download from Settings > Developer > SDKs tab:
JavaScript Example
const OnbrixSDK = require("./onbrix-sdk");
const crm = new OnbrixSDK({
apiKey: "crm_your_api_key",
baseUrl: "https://app.onbrix.org/api/v1",
});
// List contacts
const contacts = await crm.list("contacts", {
page: 1,
pageSize: 25,
search: "jane",
});
// Create a contact
const newContact = await crm.create("contacts", {
first_name: "Jane",
last_name: "Doe",
email: "jane@example.com",
});
// Update a contact
await crm.update("contacts", newContact.id, {
phone: "+1234567890",
});
Python Example
from onbrix_sdk import OnbrixSDK
crm = OnbrixSDK(
api_key="crm_your_api_key",
base_url="https://app.onbrix.org/api/v1"
)
List leads
leads = crm.list("leads", page=1, page_size=25)
Create a lead
new_lead = crm.create("leads", {
"first_name": "John",
"company": "Acme Inc",
"source": "Website"
})
SDK Features
All SDKs include: