CONNECT APP
Build with Front
Customer communication platform
Marketing
- OAuth
MCP
Give your agent Front tools
Every Front action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Front account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "frontapp",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Add Comment:
const result = await mcp.callTool({
name: "frontapp-add-comment",
arguments: {
conversationId: "Conversation ID",
body: "Body",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", # any stable ID for this user in your system
"x-pd-app-slug": "frontapp",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Add Comment:
result = await session.call_tool("frontapp-add-comment", {
"conversationId": "Conversation ID",
"body": "Body",
})API PROXY
Call the Front API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Front API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api2.frontapp.com/me",
})
// Any allowed Front endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# The path segment is the target URL, URL-safe base64 encoded:
# https://api2.frontapp.com/me
curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkyLmZyb250YXBwLmNvbS9tZQ?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
-H "Authorization: Bearer {access_token}" \
-H "x-pd-environment: production"SDK
Run Front actions from your backend
Connect a user's Front account once, then run Add Comment on their behalf from your own code — TypeScript, Python, or plain HTTP.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "frontapp-add-comment",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
frontapp: { authProvisionId: "apn_xxxxxxx" },
conversationId: "Conversation ID",
body: "Body",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="frontapp-add-comment",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"frontapp": {"authProvisionId": "apn_xxxxxxx"},
"conversationId": "Conversation ID",
"body": "Body",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "frontapp-add-comment",
"configured_props": {
"frontapp": { "authProvisionId": "apn_xxxxxxx" },
"conversationId": "Conversation ID",
"body": "Body"
}
}'TOOLS
Front actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Add Comment
actionAdd a comment to a conversation. See the documentationWritev0.0.7 -
Archive Conversation
actionArchives a conversation. See the documentationWritev0.0.7 -
Assign Conversation
actionAssign or unassign a conversation. See the documentationWritev0.0.7 -
Create Draft
actionCreate a draft message which is the first message of a new conversation. See the documentationWritev0.0.7 -
Create Draft Reply
actionCreate a new draft as a reply to the last message in the conversation. See the documentationWritev0.0.7 -
Create Inbox
actionCreate an inbox in the default team (workspace). See the documentation.Writev0.0.6 -
Create Message
actionSend a new message from a channel. See the documentation.Writev0.0.5 -
Create Message Template
actionCreate a new message template. See the documentation.Writev0.0.6 -
Delete Message Template
actionDelete a message template. See the documentation.Writev0.0.6 -
Get Comment
actionRetrieve a comment from a conversation. See the documentationRead-onlyv0.0.7 -
Get Conversation
actionRetrieve a conversation by its ID from Front. See the documentationRead-onlyv0.0.7 -
Get Message
actionRetrieve a message by its ID. See the documentationRead-onlyv0.0.6 -
Get Teammate
actionRetrieve a teammate by ID. See the documentationRead-onlyv0.0.7 -
Get Ticket Status
actionGet a ticket status by its ID. See the documentationRead-onlyv0.0.2 -
Import Message
actionAppends a new message into an inbox. See the documentation.Writev0.1.13 -
List Comment Mentions
actionList the teammates mentioned in a comment. See the documentationRead-onlyv0.0.7 -
List Conversation Comments
actionList the comments in a conversation. See the documentationRead-onlyv0.0.7 -
List Conversations
actionList conversations in the company. See the documentationRead-onlyv0.0.7 -
List Message Templates
actionList the message templates. See the documentation.Read-onlyv0.0.6 -
List Teammate
actionList teammates in the company. See the documentationRead-onlyv0.0.7 -
List Ticket Statuses
actionList the ticket statuses available for your company. See the documentationRead-onlyv0.0.2 -
Receive Custom Messages
actionReceive a custom message in Front. See the documentation.Writev0.0.10 -
Reply To Conversation
actionReply to a conversation by sending a message and appending it to the conversation. See the documentation.Writev0.0.10 -
Send New Message
actionSends a new message from a channel. It will create a new conversation. See the documentation.Writev0.2.12 -
Tag Conversation
actionAdd tags to a conversation. See the documentationWritev0.0.7 -
Update Conversation
actionUpdates a conversation. See the documentation.Writev0.1.12 -
Update Teammate
actionUpdate a teammate. See the documentation.Writev0.0.6
-
New Conversation Created
triggerEmit new event when a conversation is created. See the documentationv0.0.7 -
New Conversation State Change
triggerEmit new event when a conversation reaches a specific state. See the documentationv0.0.9 -
New Conversation Tag
triggerEmit new event when a conversation is tagged with a specific tag or any tag. See the documentationv0.0.9 -
New Message Template Created
triggerEmit new event when a message template is created. See the documentationv0.0.7
- App slug
- frontapp
- Authentication
- OAuth
- Categories
- Marketing
- Actions
- 27
- Triggers
- 4
- API proxy
- Available