How can I get the ticket fields using APIs?

Modified on Tue, 17 Feb at 1:14 PM

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_form_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_form_fields

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

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article