Create single contact in CRM
Update single contact matched by id or email
Search contact by it's property value
npx @superfaceai/cli install crm/contacts
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('crm/contacts');
// Use the profile
const result = await profile
.getUseCase('Create')
.perform({
email: 'johndoe@example.com',
firstName: 'John',
lastName: 'Doe',
company: 'Superface',
country: 'USA',
customProperties: {
myproperty: 'field value'
}
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.