SDKs & Libraries
Tools to integrate with the Magnet Customer API.
{}
Node.js SDK
@magnetcustomer/sdk$ npm install @magnetcustomer/sdk
Example
import { MagnetCustomer } from '@magnetcustomer/sdk';
const crm = new MagnetCustomer({
account: 'your-account', // the subdomain you use to open the CRM
clientId: process.env.MAGNET_CLIENT_ID,
clientSecret: process.env.MAGNET_CLIENT_SECRET,
});
// The SDK requests and renews the Service Account token for you
const { data } = await crm.deals.listDeals({ page: 1, limit: 25 });
console.log(data.total, data.docs);
const created = await crm.contacts.createContact({
contactInput: { fullname: 'Maria Santos', email: 'maria@cliente.com' },
});⧉
OpenAPI
openapi/v2.yamlThe API description file behind the reference. Import it into Postman, Insomnia or a code generator for your language.
Z
Zapier
Magnet Customer for ZapierConnect Magnet Customer to other apps without writing code. Triggers and actions for contacts, deals, tasks and more. Available by invitation.
n
n8n
@magnetcustomer/n8n-nodes-magnetcustomerCommunity node for n8n workflows, with triggers and actions for the main CRM records.