Code Examples
Examples of common API operations in different programming languages
Get Contacts
// Get contacts with authentication
const response = await fetch('https://innotes.com/api/contacts', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
const contacts = await response.json();
console.log(contacts);
Create Contact
// Create a new contact
const newContact = {
name: 'John Doe',
email: 'john@example.com',
company: 'Example Corp',
tags: ['lead', 'developer']
};
const response = await fetch('https://innotes.com/api/contacts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify(newContact)
});
const contact = await response.json();
Create Note
// Add a note to a contact
const note = {
text: 'Had a great conversation about the project',
ext_id: 'contact_id_here',
ext_table_name: 'contacts'
};
const response = await fetch('https://innotes.com/api/note', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify(note)
});
Support & Resources
Need help? Check out these resources or contact our team