Freshworks
  • Sign up for Freshservice
  • +1 (866) 832-3090
    • +1 (866) 832-3090

    • +91 (44) 6667 8040

    • +44 (800) 808 5790

    • +61 2 8188 4692

  • freshservice

    Freshservice

    Login
    Login Freshworks Go to Freshservice
    • Contact Support
      • +1 (866) 832-3090
      • +91 (44) 6667 8040
      • +44 (800) 808 5790
      • +61 2 8188 4692
    Support Home

    solutions

    • Support Home
    • FAQs
    • Solutions
    • Release Notes
    • Freshservice for MSPs
    Solution home / FAQs / API & Webhooks

    FAQ REPOSITORY

    • Service Desk FAQ
    • Workspaces
    • Incidents & Service Request
    • Agents and Groups
    • SSO
    • Service Catalog
    • Priority Matrix
    • Problem
    • Changes
    • Asset Management
    • Tasks
    • New-Gen Project Mgmt
    • Automations and Triggers
    • Ticketing Workflow
    • Feedback Widget
    • API & Webhooks
    • Announcements
    • Email
    • Release
    • Business Hours and SLAs
    • Email Notifications
    • Reports
    • Gamification and Arcade
    • Sandbox
    • Orchestration
    • Affliate Marketing
    • Pricing FAQ
    • Analytics FAQs

    API & Webhooks

    What is the rate limit for APIs across all plans?

    For v1:


    The number of API calls per hour is restricted to 1000. If your API request is received after the limit has been reached, freshservice will give you an error response. The "retry-after" value in the response header will tell you how long you need to wait before you send another API request.


    For more details refer to our API v1 documentation: https://api.freshservice.com/

     

    For v2:

     

    Freshservice accounts created on or after 01-Sep-2020 will use minute-level rate limiting. The limits vary based on the freshservice plan. Certain API operations also have sub-limits within the overall limit. This limit is applied on an account-wide basis irrespective of factors such as the number of agents or IP addresses used to make the calls.



    Accounts created before 01-Sep-2020 will eventually be migrated to minute-level rate limiting. The previous limits would continue to apply until the migration is completed.

    For more details refer to our API v2 documentation: https://api.freshservice.com/v2/



    How can I get the ticket fields using APIs?

    You can use the following curl command to get the required ticket fields: 
    curl -v -u user@yourcompany.com:test -X GET 'https://domain.freshservice.com/api/v2/ticket_fields'

    If you do not want to use your email address and password in the curl command, you can also use your API key instead of the email address and X as the password, as shown below.

    curl -v -u API key:X -X GET 'https://domain.freshservice.com/api/v2/ticket_fields' 

    For more information, please visit https://api.freshservice.com/v2/#get_all_ticket_fields

    What is the date-time format used in Freshservice APIs?

    Input for date fields is expected to be in one of the following formats:

    YYYY-MM-DD 

    YYYY-MM-DDTHH:MM 

    YYYY-MM-DDTHH:MMZ 

    YYYY-MM-DDTHH:MM:SS 

    YYYY-MM-DDTHH:MM:SSZ 

    YYYY-MM-DDTHH:MM:SS±hh:mm 

    YYYY-MM-DDTHH:MM:SS±hh 

    YYYY-MM-DDTHH:MM:SS±hhmm

    For more information, please click : https://api.freshservice.com/v2/#schema 

    How can I get user information using API’s?

    You can use the following curl command : curl -v -u user@yourcompany.com:test -X GET 'https://domain.freshservice.com/api/v2/requesters/777'

    For more information, please click: https://api.freshservice.com/v2/#view_a_requester 

    How can I create tickets with attachments using API?

    You can use the following curl command : 

    curl -v -u user@yourcompany.com:test -F "helpdesk_ticket[attachments][][resource]=@/path/to/attachment1.ext" -F "helpdesk_ticket[attachments][][resource]=@/path/to/attachment2.ext" -F "helpdesk_ticket[email]=example@example.com" -F "helpdesk_ticket[subject]=Ticket Title" -F "helpdesk_ticket[description]=this is a sample ticket" -X POST https://domain.freshservice.com/helpdesk/tickets.json

    For more information, please click: https://api.freshservice.com/#create_ticket_with_attachment

    Can I view all service items using API?

    You can use the following curl command : 

    curl -u user@yourcompany.com:test -H "Content-Type: application/json" -X GET https://domain.freshservice.com/catalog/items.json?page=2

    For more information, please click: https://api.freshservice.com/#view_all_service_items 

    How do I create solution categories using API?

    You can use the following curl command : 

    curl -u user@yourcompany.com:test -H "Content-Type: application/json" -X POST -d '{ "solution_category": { "name":"API", "description":"API related documents" }}' https://domain.freshservice.com/solution/categories.json

    For more information, please click: 

    https://api.freshservice.com/#create_solution_category

    Why do tickets get created with priority as low even when priority value is set to “4” while creating with API?

    If you have priority matrix enabled on your account, then the value passed in the API will be ignored and the priority matrix would set the priority for the ticket. If in case  you do not want this, you can navigate to Admin > Priority Matrix and disable it. 

    Can we update custom fields of tickets using APIs?

    Yes it is possible. For more information, please click : https://api.freshservice.com/v2/#update_ticket_priority

    Can we associate an asset to a ticket using APIs?

    You can use the following curl command : 

    curl -u (credentials) -H "Content-Type:application/json"-d' {"helpdesk_ticket": {}, “associate_ci”: {"serial_no'":'99RSH32","name":"SALES-SERV","user": "tom@outerspace.com"}}' -X PUT https://domain.freshservice.com/helpdesk/tickets/123.json

    For further information, please refer to the documentation here: https://api.freshservice.com/#associate_a_ci_to_a_ticket

    What is a Webhook?

    A Webhook is a callback to an application or a web service that is triggered when a specific event occurs, this is configured using the workflow automator. This means you can set up a Webhook to look for a specific update, change or action to occur in your Service Desk and it will automatically push the information you specify to the application you want.

    Is there an API existing for Parent-Child association?

    Yes, using the API mentioned in this link(https://api.freshservice.com/v2/#create_child_ticket) , you would be able to create a child ticket to an existing Incident ticket

    How do I link Change and Ticket using API?

    It is possible to associate a change to a ticket via API while creating a ticket. Please take a look at the Curl Command given below: 

    Use this link to create a ticket and associate it with a change.

    Where do I find my API key?
    • Login to your Support Portal
    • Click on your profile picture on the top right corner of your portal
    • Go to Profile settings Page
    • Your API key will be available below the Delegate Approvals section to your right

                

    Does enabling Apps consumes my API calls?

    Yes, certain marketplace apps consume APIs, do reach out to our support team via support@freshservice if you need further information on this. We will be able to check and let you know if the app you use, is consuming API calls.

    How can I check the available API limit?

    If you are using API V1 then after the limit has been reached, freshservice will give you an error response. The "retry-after" value in the response header will tell you how long you need to wait before you send another API request.


    To check the API limit using V2, You can check your current rate limit status by looking at the following HTTP headers which are returned in response to every API request.

    • OUR PRODUCTS
    • Freshworks
    • Freshdesk
    • Freshservice
    • Freshsales
    • Freshteam
    • Freshmarketer
    • Freshsurvey
    • COMPANY
    • About
    • Leadership
    • Board of Directors
    • Investors
    • Customers
    • Solutions
    • Affiliates
    • Partners
    • Careers
    • Newsroom
    • Contact Us
    • GDPR
    • US Sales Tax FAQ
    • FRESHSERVICE
    • ITSM
    • ITOM
    • Features
    • Pricing
    • Customers
    • Resources
    • Blog
    • Integrations
    • API
    • TOP FEATURES
    • ITIL
    • IT Service Desk Software
    • Incident Management
    • Asset Management
    • Problem Management
    • Change Management
    • Alert Management
    • IT Project Management
    • SaaS Management
    • Release Management
    • Service Catalog
    • CMDB
    • SOLUTIONS
    • Enteprise
    • SMB
    • IT Solutions
    • IT Operations Management
    • ESM
    • MSP
    • HR
    • Marketing
    • Finance
    • Facilities
    • Education
    • Healthcare
    • MOBILE APPS
    • Connect with us
    • SALES & SUPPORT
    • +1 (866) 832-3090
    • support@freshservice.com
    • Terms of service
    • Privacy policy

    Copyright © Freshworks Inc. All Rights Reserved.