Returns all contacts and contact groups for current user
InputParameters:
logintoken - Text - Retrieved by former invocation of /api/authentication/login in order to identify user. Required.
logintoken
API Address: https://www.filemail.comGET /api/contacts/get?logintoken=2ac1241817fb4285aa0a1dbd00a21dad
{ "contacts": [ { "contactid": "1000658322", "name": "John Doe", "email": "john.doe@filemail.com", "groups": [ { "contactgroupid": "1c12267ae0244adf956bf80788b4f4da", "name": "Business Contacts" } ] } ], "responsestatus": "OK" }
{ "Contacts": [], "responsestatus": "OK" }
Adds contact to contact list
name - Text - Name of the contact. Required.
name
email - Text - Email address of the contact. Required.
email
mobile - Text - Mobile phone of the contact. Optional.
mobile
API Address: https://www.filemail.comGET /api/contacts/add?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &name=JohnDoe&email=john@pentagon.gov
{ "responsestatus": "OK", "contact": { "contactid": "1000658318", "name": "John Doe", "email": "john.doe@filemail.com" } }
{ "responsestatus": "InvalidEmail", "errorcode": 1004, "errormessage": "Parameter 'email' is not a valid e-mail address: john-doe-filemail.com" }
Updates contact
contactid - Text - Id of the contact. Required.
contactid
name - Text - New name of the contact. Optional.
email - Text - New email address of the contact. Optional.
mobile - Text - New mobile phone of the contact. Optional.
API Address: https://www.filemail.comGET /api/contacts/update?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactid=jd893jr8g93hf39th&name=JohnDoe&email=john@pentagon.gov
{ "responsestatus": "OK" }
{ "responsestatus": "InvalidParameter", "errorcode": 1002, "errormessage": "Contact not found" }
Deletes contact
API Address: https://www.filemail.comGET /api/contacts/delete?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactid=jd893jr8g93hf39th
Get all groups for user
API Address: https://www.filemail.comGET /api/contacts/group/get?logintoken=2ac1241817fb4285aa0a1dbd00a21dad
{ "status": "OK", "groups": [ { "contactgroupid": "86e24d651c494b28bacda061d56f85f9", "contactgroupname": "Coworkers" } ] }
Adds new contact group
name - Text - Name of contact group. Required.
API Address: https://www.filemail.comGET /api/contacts/group/add?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &name=Coworkers
{ "responsestatus": "OK", "Groups": [ { "contactgroupid": "86e24d651c494b28bacda061d56f85f9", "contactgroupname": "Coworkers" } ] }
Updates contact group
contactgroupid - Text - Id of the group to update. Required.
contactgroupid
name - Text - New name of the contact group. Required.
API Address: https://www.filemail.comGET /api/contacts/group/update?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactid=jd893jr8g93hf39th
Deletes contact group
contactgroupid - Text - Id of the group to delete. Required.
API Address: https://www.filemail.comGET /api/contacts/group/delete?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactgroupid=jd893jr8g93hf39th
Add a contact to a group
contactgroupid - Text - Id of the group to add contact in. Required.
contactid - Text - Id of the contact to add in group. Required.
API Address: https://www.filemail.comGET /api/contacts/addtogroup?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactgroupid=jd893jr8g93hf39th&contactid=jd893jr8g93hf39th
Remove a contact from a group
API Address: https://www.filemail.comGET /api/contacts/removefromgroup?logintoken=2ac1241817fb4285aa0a1dbd00a21dad &contactgroupid=jd893jr8g93hf39th&contactid=jd893jr8g93hf39th