Freshdesk
Create and manage support tickets and add notes in Freshdesk.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("freshdesk", action, input) resolves with the provider's answer and rejects when Freshdesk isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "freshdesk"} says whether yours can call it.
// workflows/notify.ts: call Freshdesk when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellFreshdesk = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Freshdesk isn't connected.
const output = await step.run("Freshdesk", () =>
step.ctx.integrations.invoke("freshdesk", "get_all_tickets_by_status", {
"status_filter": []
}),
);
step.ctx.log("Freshdesk answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "freshdesk",
"piece_action": "get_all_tickets_by_status",
"input": {
"status_filter": []
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/freshdesk/get_all_tickets_by_status" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"status_filter":[]}}'Actions
get_all_tickets_by_status
Get All Tickets By Status. Get All Tickets by selected status from Freshdesk.
| Input | Type | Description |
|---|---|---|
status_filterrequired | list of | Select one or status values |
get_contact_from_id
Get Contact from ID. Get contacts details from Freshdesk using ID number.
| Input | Type | Description |
|---|---|---|
contactidrequired | text | The ID number of the contact |
get_contacts
Get Freshdesk Contacts. Get contact details from Freshdesk for all (optional filtered) contacts.
| Input | Type | Description |
|---|---|---|
filter_typeoptional | one of "email" | "mobile" | "phone" | "company_id" | "updated_since" | Select one and provide the value. |
filter_valueoptional | text | Provide value if previous option selected! |
filter_statusoptional | one of "blocked" | "deleted" | "unverified" | "verified" | Can filter by state: blocked, deleted, unverified or verified. |
per_pagerequired | number | Freshdesk calls this per_page - set to 0 for all, if specified maximum is 100 |
get_ticket_status
Get Ticket Status. Get Ticket status from Freshdesk. Returns ticket_status, assigned_status, assigned_id
| Input | Type | Description |
|---|---|---|
ticketidrequired | text | The Ticket ID to return status |
get_tickets
Get Tickets. Get Ticket instances from Freshdesk.
No input.
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
Details
- Id
freshdesk- Category
- Customer support
- Tags
- helpdesk, tickets, support, freshworks
- Package
@activepieces/piece-freshdesk@0.2.4- Runs
- Through the integration runner