Community topics about Front APIs and SDKs
Recently active
Hi there,I’m using the import message API (https://dev.frontapp.com/reference/import-inbox-message) to create a conversation in front when a user takes an action on our website. I’ve done that so the message is from the user / a contact, and that the messages can be replied to by our team.When importing the message, is it possible to set a value for a custom field on the conversation that is created? Or will I need to change my workflow to create a conversation first, then import the message to that conversation? The use case wanting to assign the order ID the conversation relates to, to make it easier to find again via the API.Thanks!
Hello, Front displays “Message Templates” as a filter in Analytics, tracking messages that started as a template. How does Front discern these messages? Using the “Get Message” endpoint, we cannot find any data that differentiates a “normal” message from a template message.
You can now create company-level tags via the API using the Create company tag endpoint. View the company-level tags using the List company tags endpoint. Happy coding!
Hey 👋When using the Core API to create a new conversation, there is a possibility to add a "signature_id". However, when the signature incorporates dynamic variables such as {{user.name}}, it appears that it does not populate with the information of the author, whose id is specified in the author_id field.Is this expected behavior or could it potentially be a bug?
We are looking to build some custom fields with datetime values. When we insert them as variables into a message are they timezone aware? The person asking me about this is creating a template and wants to insert a custom field of datetime and wants to know when the message based on the template is sent how will the datetime values show? Thanks
import requestsimport configparserimport os# Read API key from config.iniconfig = configparser.ConfigParser()config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.ini')config.read(config_path)apikey = config.get('frontapp', 'api_key')def list_contact_groups(): url = "https://api2.frontapp.com/contact_groups" headers = { "accept": "application/json", "authorization": f"Bearer {apikey}" } response = requests.get(url, headers=headers) if response.status_code == 200: return response.json().get('_results', []) else: raise Exception(f"Failed to fetch contact groups. Status code: {response.status_code}, Response text: {response.text}")def get_contacts_from_group(group_id): url = f"https://api2.frontapp.com/contact_groups/{group_id}/contacts?limit=100" headers = { "accept": "application/json", "authorization": f"Bearer {apikey}" } response = requests.get(url, headers=headers) if response.status_
Is there any way in Front to trigger a specific webhook for testing other than doing the action that triggers it? I am having a hard time getting the “Message delivery failed” webhook to trigger.
Hi,I noticed that while a user’s Front app is focused on our custom plugin, Front’s shortcuts won’t work.This is of course because they are hosted in an iframe. Similar examples of this kind of issue can be found in other platforms ie. https://github.com/microsoft/vscode/issues/65452Dispatching an event from the child iframe across to the parent window is forbidden due to cross domain security issues.2 possible solutions are:Front provides offer a postMessage that we can send to forward events. The contextApi exposes a way to forward all / some of the events.There of course may be other good solutions!Please note that the few more popular Front plugins I tested (from large well known companies) suffered from the same issue. For instance `cmd+n` to compose a new message. Any workarounds?-David
Hello,We are trying to make an internal dashboard using Front data and data from other tools we have. I am wondering what agregation you did in order to make the KPI that we can see in our analytics. For example the reply time (avg). Another question, is it possible to send a separate message using rules ? I mean :we put a tag on a conversation that triggers the following We extract the recipient mail address Send a specific mail to that recipient using a template Thanks, Best regards,
Hey,When using the Reply to Conversation endpoint, I would like the email thread of the conversation to be added at the bottom of the message. This would provide a behavior similar to replying straight through the Front application.What would be the best way to achieve that? Thanks ✌️
For a plugin I developed, I want to prefill the email or telephone number (dependent on the message) of the sender of that message. I can’t find which method I need to use to fetch that info of the sender. Is there a way I can do this and, if so, which method do I use?Thanks in advance!
I am attempting to query the contacts list api and including a parameter to only get contacts updated in the last 3 days. I understand how to construct the UNIX time stamp (I think.)My question is when I do the curl command below and update a single contact in our testing instance of Front I get back all contacts no matter the updated_at date. Am I misunderstanding how the q works and should I only get a list of the ones that have been updated?curl --request GET \ --url 'https://api2.frontapp.com/contacts?q=\[update_after\]=1679933002.000' \ --header 'accept: application/json' \ --header 'authorization: Bearer <token>'Result for contact when it has not been updated"updated_at": 1679932512.707,Result for contact after I update it"updated_at": 1679933920.514,In both cases I am still getting a list of all contacts.
I’m developing a plugin with SDK, where I call external API to generate me a draft body and create or update a draft.If there is no existing draft, I can call context.createDraft to crate draft. This method doesn’t seem to work if a draft already exists. I see from documentation there’s updateDraft method, which requires draft ID.How can I get such ID, if the draft already exists in a conversation?
From reading the documentation, it seems clear that the Context API can create new email drafts thought context.createDraft, I can get this to work in a very neat way. However, is this all that the Context API can do when it comes to creating new drafts?I see no info on creating a new internal discussion (https://explain.helloretail.com/xQuRABAe) or comment in a thread via the Context API. Which seems like something that should fit inside the scope of the current context? Instead I have found that the Core API does have the endpoint for creating comments and drafts (emails). However, I still can’t find any info of creating a new internal discussion draft? It also seems like a little bit of a workaround to use the Context API to create a new email draft, Core API to create a new comment. Did I get this right or have I missed something here? TL;DR question(s): 1. Is it possible to create a new internal discussion drafts via any of the APIs? 2. Can the context API only create new email d
Hi, I’m currently working on a plugin that converts email messages to PDFs. To be able to do so, I need to know which messages are currently being selected by the user. However, there does not seem to be a way to list currently selected messages in Front’s context API, and to my knowledge we can only retrieve ALL of the messages inside a selected conversation using listMessages. I would really appreciate if someone could give me pointers on this. Thank you 😄.
You can now add channel types as features to Front apps. This makes it much easier to create new channel types, eliminating the need to submit a form and request channel credentials from Front. Instead, you can configure a server for your channel and obtain the App UID and App secret directly from your app settings. As part of this change, “partner channels” have been renamed to “application channels” to emphasize that you can now self-serve channels through the Front apps available on the Developers page in your Front settings. The functionality of application channels remains the same, and any existing partner channels have been migrated to the new application channels Developers page experience (Settings > Developers). In addition to being able to create channel types directly in Front apps, we’re also launching the ability to select between two timeline options when you create a channel type:Standard timeline (ideal for email-like channels) Chat timeline (ideal for real-time cha
Hello. I am looking for suggestions, tried sales and sent a support ticket, but there is no reply. I would like to set up my clients as individual, siloed TEAMS. They would have full access to the other users on their team (all 50 users at a salon), 100 users on another team at an insurance company, and 5 people on another team at a dance studio for example. The idea is that the Salon would have about 50 people doing scheduling, having a shared inbox, individual google business emails etc. They could use Front, well, like Front. But, today, when I started to set them up, I noticed a user in 1 team can see ALL of the other members of every other team, this does not seem right to me. In fact, my client noticed it before I did and was like why do I see this person and that person, who are those people? I want to add them to MY account so I can get stuff pushed to me from them that I need to take care of, and they can share messages and chat with each other and me but NOT the insurance c
Hello, I’m setting up provisioning in JumpCloud, and I must enter SCIM details for Front manually. I’ve made an auto-provisioning token, but I still cannot connect to the SCIM server. My gut feeling is that the SCIM server has a different base URL than https://api2.frontapp.com, but I’m not sure because I can’t find any documentation. Thanks in advance for any help,Brodie
Hello,I need to know if I can connect Front to the Mulesoft application.The goal is to automatically send 100% of the documents received in Front, regardless of the channel, to Mulesoft, so that we can then read them and connect them to our Home Made CRM (possible from Mulesoft)Outlook can receive the mails, and send them to Mulesoft, but:I don't use Outlook of course Front receives a lot of What's App too, that's why the sending has to be done between Front and Mulesoft directlyThanks for your help! Jérémie
Hello all!I am finding that the plugin sdk does not allow for CRUD operations on front contacts. Is this correct? If this functionality is not available I am assuming I need to work with the core API.Is there a javascript library to work with the core api?
I am noticing that the is_spammer field is not returned from calls to GET contacts/{contact_id}.I am trying to add the ability to mark as spammer the contact from a plugin.Im using a php backend and the response body does not include the is_spammer field.Is there something I am doing wrong?
I’m working on a plugin which needs to list and parse messages and discussions using context.listMessages() and context.listComments()I ever receive the whole conversation, only the first 20 discussion messages and in the case of emails 3, even though the conversations contains many more.If I understand the docs correctly, I should use the nextPageToken form the response, in order to read more/all messages. I did this according to the documentation (see code below) This however, makes no difference and I still receive 3 or fewer emails. const listAllEmails = async () => { const emailList = await context.listMessages(); let nextPageToken = emailList.token; const emails = emailList.results; while (nextPageToken) { const { results, token } = await context.listMessages(nextPageToken); nextPageToken = token; emails.push(...results); } return emails; };https://dev.frontapp.com/reference/plugin-sdk-pagination-token I found that my nextPageToken is always
Hello,I am new to development and was wondering if anyone has made a SDK to connects Front to Hubspot?Ideally, we would want to make a plug in that would give us more options when creating a deal in Hubspot from the sidebar of Front.Any assistance on how to get started? Our first thought was Retool
At Front we’re constantly looking for ways to improve our product, and direct feedback from customers is one of the key influences on our product roadmap. The ideas portal below is the best way to share product feedback with our product team. Guidelines for submitting Ideas:Be sure to search for similar ideas that have already been posted. This helps to avoid duplicates and will save you time from typing out a new Idea. You can comment on an existing Idea to add additional details that would be helpful for our team to consider. Be as detailed as possible: when describing your idea, please provide as much detail as possible, including example use cases and why the feature would be valuable to you. This helps our product team better understand the potential impact of your idea. Submit one idea at a time: this makes it easier for our product team to review and track the progress of each idea. When you first submit an idea, it may take some time before the idea is made visible for others
Building a Core API integration? We now offer a sample application that demonstrates How to import messages and conversations Setting headers and attachments Rate limiting Head to our Developer Portal to check it out!
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.