The Freshservice API opens up a realm of possibilities for streamlining IT service management processes. It allows you to interact programmatically with Freshservice features, such as creating tickets, managing users, updating service catalog items, and more. Leveraging the Freshservice API on Pipedream, you can automate repetitive tasks, create complex workflows that react to events in Freshservice in real time, and connect Freshservice to a multitude of other services to enhance its capabilities and your productivity.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freshservice: {
type: "app",
app: "freshservice",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.freshservice.$auth.domain}.freshservice.com/api/v2/tickets`,
auth: {
username: `${this.freshservice.$auth.api_key}`,
password: `X`,
},
})
},
})
Ticket Management Automation: Automate the creation, updating, and closing of tickets in Freshservice based on triggers from email, support forms, or chatbots. For instance, use Pipedream to listen for incoming emails through a platform like Gmail, parse the content, and automatically create tickets in Freshservice with the relevant details extracted from the email.
Asset Lifecycle Updates: Keep asset records up-to-date by triggering workflows in Pipedream when changes occur in third-party asset management tools, such as Snipe-IT. When assets are added or updated in Snipe-IT, a Pipedream workflow can automatically reflect those changes in the Freshservice asset inventory, ensuring data consistency.
User Provisioning and Management: Streamline user onboarding and offboarding by integrating Freshservice with HR platforms like BambooHR. When a new employee is added to BambooHR, a Pipedream workflow can create a new user in Freshservice, assign them to the correct groups, and even initiate the IT onboarding ticket sequence. Conversely, when an employee leaves, the workflow can deactivate their Freshservice account and kick off the offboarding process.
Freshservice uses API keys for authentication. When you connect your Freshservice account, Pipedream securely stores the keys so you can easily authenticate to Freshservice APIs in both code and no-code steps.
Your Freshservice API key is in your Profile > Settings page, below the change password section on the right.
Your domain
is displayed in your Freshdesk URL. For example, https://{your_domain_here}.freshservice.com/
.