Ask technical questions about the Front Platform
Recently active
HelloI am trying to create a conversation with an attachment via API https://api2.frontapp.com/channels/cha_123/incoming_messagesCurrently, I am receiving new messages but without attachments.My code looks like this: {"to": [ "jkkyal@gmails.io" ], "options": { "archive": false, "tag_ids": [ "tag_3d08eq" ] }, "sender": { "handle": "test3masil" }, "body_format": "markdown", "subject": "Send Mail upload RX13", "body": "This is an SMS message with an attached photo of a cat", "metadata": { "headers": { "Content-Type": "multipart/form-data" } }, "attachments": [ "data:image/png;name=cbimage.png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8 ]}
HelloI am trying to create a conversation with tags but getting response is_inbound : false not get any message please help regarding this issue solved check below { "_links": { "self": "https://abcd.api.frontapp.com/messages/msg_1mabcd", "related": { "conversation": "https://abcd.api.frontapp.com/conversations/cnv_abcd", "message_seen": "https://abcd.api.frontapp.com/messages/msg_abcd/seen" } }, "id": "msg_1m5lzwnm", "type": "custom", "is_inbound": false, "created_at": 1681814409.457, "blurb": "", "body": "This is an SMS message with an attached photo of a cat", "text": "This is an SMS message with an attached photo of a cat", "error_type": null, "version": "b43db466d7f0c5dabcd6bd9c2cf0-7291346-1681814409457-7fc4", "subject": "", "draft_mode": "private", "metadata": { "headers": { "in_reply_to": null } }, "author": null, "recipients": [ { "_links"
post man api test content download timeas the illustration above? how can i impove the speed of http response download time ?
It has been a bit of a painpoint for us for a long time that rules cannot be built to somehow react values which are within attachments (IF attachment contains {customer.id} THEN add tag {random tag} etc).It’s really often that the critical data is there, in that .xlsx or .pdf file and this situation come in almost hourly basis nowdays.And I mean, technically it should be possible since search in Front does also show values/results which are within attachments.Since building rules is not possible (yet, hopefully), I’d be happy to build this kind of functionality to our own plugin myself, if there would be a way to do it somehow. It seems that SDK doesn’t have this, so are there any other ways?
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.
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
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 😄.
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
Hi,I’m building a plugin to save a message’s attachment and send it directly to a Google Drive. The problem I’m facing is that the context.downloadAttachment() function is returning a broken file: // attachments state contains message_id and attachment_id of all the conversation's attachments const handleAttachmentDownload = (index) => { context.downloadAttachment( attachments[index].messageData.id, attachments[index].attachmentData.id ) .then((resp) => { console.log(resp) setPreview(URL.createObjectURL(resp)) }); };The promise is successfully returning a File but as we try to handle the file (previewing or sending it to a google drive it for example) the resulting uploaded file is broken. Am I doing something wrong here? I’ve tested the exact same flow with a simple file input uploader and it works fine. Thanks
Might be a big of a long shot, but I was wondering if it’s possible / what it would take to mimic the behavior of the Linear.app integration of linking a Front ticket to a Linear issue. I examined the requests that are sent when linking an issue from Front, and it seems there are a fair few things that are required to make that happen. Is there any way to trigger that programmatically? Or can anyone help with the steps required to replicate that behavior? Thanks for any help!
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.